5👍
✅
Usually when the admin in Django isn’t working the two main culprits are forgetting to add the following two lines to the urls.py file.
admin.autodiscover()
and
url(r'^admin/', include(admin.site.urls))
Now you can go ahead with the tutorial and when you register models in your admin.py, don’t forget
admin.site.register(MyModelGoesHere, MyModelAdminNameGoesHere)
Good luck! 🙂
Source:stackexchange.com