Opened 8 years ago

Closed 8 years ago

#5576 closed (duplicate)

Django from subdirectorys with FCGI

Reported by: wintesa@… Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


When running Django from a subdirectory in a shared webhosting enviroment on trying to use the admin, it redirects one back to the root of the webhost cutting out the directory that it originated from.

ps I didnt check if actually exists.

The .htaccess in /myproject:

AddHandler fastcgi-script .fcgi
RewriteEngine On
RewriteRule ^(media/.*)$ - [L]
RewriteCond %{REQUEST_FILENAME} !(django.fcgi)
RewriteRule ^(.*)$ /~eric/myproject/django.fcgi/myproject/$1 [QSA,L] for myproject:

(r'^myproject/admin/', include('django.contrib.admin.urls')),

Admin Page (works):

On login or failure (error):
Get redirected back to the root of the webhosting.

This guide was followed mostly to implement the shared hosting solution;
and this;

Change History (1)

comment:1 Changed 8 years ago by brosner

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #285.

Note: See TracTickets for help on using tickets.
Back to Top