Hi Graham,
Thanks for responding. I'm using Django 1.0, hosted at Webfaction on
Apache using mod_python. What special configuration or hacks would
you suggest to get admin properly working at a sub URL of this
configuration?
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 [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-users?hl=en
-~----------~----~----~----~------~----~------~--~---