I'm sure I'm doing something wrong, but I can't figure out what. The
list, add, and change links on the admin index all point to the
correct URLs, but all URLs under /admin are returning the admin index
page rather than the appropriate views.
Using the following urls.py under Django 1.1:
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Uncomment the next line to enable the admin:
(r'^admin/(.*)', include(admin.site.urls)),
)
Interestingly, using admin.site.root instead of include
(admin.site.urls) works, but my understanding is that the older use is
now deprecated, so I'd like to get this working.
Any suggestions on what I've screwed up, or how to debug this?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---