Saturday, April 23, 2016

AttributeError: 'AdminSite' object has no attribute 'root' | Django

Your url for admin should be:
url(r'^admin/', admin.site.urls)

This would be available by default in urls.py file unless you or some program change it.


It should not  be
(r'^admin/(.*)', admin.site.root)

This is a change implemented in latest versions of Django.




If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

No comments:
Write comments