[Django]-Django admin with FCGI + lighttpd

7👍

The admin site is trying to work out the URL to use based on the SCRIPT_NAME variable passed by lighttpd, but that’s the rewritten URL, not the original one. You can force Django to use the original path by adding the following to your settings.py file.

FORCE_SCRIPT_NAME = ""

See the FORCE_SCRIPT_NAME documentation and the Django FastCGI docs for more information.

Leave a comment