NoReverseMatch: 'admin' is not a registered namespace
January 23, 2010
I was getting the error:
NoReverseMatch: 'admin' is not a registered namespace
whilst trying to go into the admin site of a Django application that was using reversion.
The problem is that I had used:
(r'^siteadmin/(.*)', admin.site.root),
for the link to the admin site in my urls.py. The correct syntax to use here is:
(r'^siteadmin/', include(admin.site.urls)),
which is a more up to date version. This solves the problem.