#5576: Django from subdirectorys with FCGI
--------------------------------+-------------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  nobody         
  Status:  new                  |   Component:  Admin interface
 Version:  SVN                  |    Keywords:                 
   Stage:  Unreviewed           |   Has_patch:  0              
--------------------------------+-------------------------------------------
 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 frank.com 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]
 }}}
 ----
 urls.py for myproject:

 {{{(r'^myproject/admin/', include('django.contrib.admin.urls')),}}}
 ----
 Admin Page (works):
 http://www.frank.com/~eric/myproject/admin

 On login or failure (error):
 http://www.frank.com/myproject/admin
 Get redirected back to the root of the webhosting.

 This guide was followed mostly to implement the shared hosting solution;
 http://wiki.asmallorange.com/HOWTODjangoFastCGI?show_comments=1#comments
 and this;
 http://groups.google.com/group/django-
 
users/browse_thread/thread/1b740572c9c102eb/ff867303ea85e6ec?lnk=gst&q=admin+nextether&rnum=1#ff867303ea85e6ec

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5576>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to