Common problem when migrating from 0.96 to 1.0…
- Add “django.contrib.admin” to INSTALLED_APPS
- Add “from django.contrib import admin” to urls.py
- Add “admin.autodiscover()” in urls.py
- Change line to (r’^admin/(.*)’, admin.site.root),
Common problem when migrating from 0.96 to 1.0…
Can you post the complete error message?
Sorry, I’ve fixed the problem now so can’t get the error message without breaking something that I need to be working…
But if you google on the phrase “ViewDoesNotExist at /admin/”, there’s plenty of examples of the full error message.
Nice touch to include the link to the official docs as well. Note that your step 4 needs a little cleanup — admin.site.root should be passed as an object, not called, so no empty parens.
Thanks Paul. I’ve removed the stray LH bracket…