Hi Graham. I do indeed have the PythonOption set in httpd.conf. Unfortunately, this doesn't seem to be the issue -- www.mysite.com/django/admin/ still gets transformed to www.mysite.com/admin after the admin login, which generates a 404 because that's not where admin is.
Any other ideas? I'm really scratching my head on this one.... Allan On Sep 24, 8:07 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Sep 24, 11:37 pm, Allan <[EMAIL PROTECTED]> wrote: > > > Hi Graham, > > > Thanks for responding. I'm using Django 1.0, hosted at Webfaction on > > Apache usingmod_python. What special configuration or hacks would > > you suggest to get admin properly working at a sub URL of this > > configuration? > > For mod_python, are you following what documentation at: > > http://docs.djangoproject.com/en/dev/howto/deployment/modpython/ > > says for Django 1.0 and setting: > > PythonOption django.root /django > > This is required for mod_python else Django doesn't know it is mounted > at a sub URL. > > Graham > > > Allan -- Atlanta > > > On Sep 23, 8:04 pm, Graham Dumpleton <[EMAIL PROTECTED]> > > wrote: > > > > On Sep 24, 5:43 am, Allan <[EMAIL PROTECTED]> wrote: > > > > > My application is working well at mysite.com/django/<stuff>, and I get > > > > an admin login at mysite.com/django/admin/ -- but when I > > > > enter my credentials, I seem to be redirected to mysite.com/ > > > > admin/ (which is a 404 error). Did I miss an admin config setting > > > > somewhere? > > > > > A relevant excerpt from urls.py appears below. > > > > > Allan > > > > > import os > > > > from django.conf.urls.defaults import * > > > > from django.conf import settings > > > > from django.contrib import admin > > > > > admin.autodiscover() > > > > > urlpatterns = patterns('', > > > > > (r'^contact/$', 'careers_contact.views.contact'), > > > > (r'^careers/$', 'careers_contact.views.careers'), > > > > > (r'^admin/(.*)', admin.site.root), > > > > ) > > > > How are you hosting Django and what version of Django are you using? > > > > Depending on how you are hosting Django and what version, you may have > > > to set special configuration or use hacks to allow it to properly host > > > at a sub URL of an Apache installation. > > > > Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---