6π
I figured it out. Here is a reference for anyone else who might find themselves with this problem.
I was using what must be a deprecated method of defining my Admin models β I put them all in models.py, instead of creating a separate admin.py file for each application.
When learning django, there are plenty of tutorials floating around that recommend or give examples that use this method. Apparently this is no longer a good idea (at least not as of Django 1.4). It could probably be wrangled into working with some template hacking, but it is is probably cleaner and definitely simpler to just follow the latest conventions and create the admin.py file.
I thought I was saving time by just cramming it all into one file βfor nowβ but without some of the magical debug-only template loading, this solution failed.
Hope this saves someone some frustration!
0π
I know this questionβs been already solved.
But in my case, coming from django 1.7 to a server that runs django 1.6, I had to add
admin.auto_discover()
to my urls.py.
Well, I had added this line to the end of urls.py and django admin was all characters !
Moving it to top up the file, above definition of urlpatterns
, fixed the issue.
Hope this helps π
- [Django]-Multiple User Types In Django
- [Django]-Setting ID for Radio buttons in Django
- [Django]-Ignore_user_abort php simil in Django/python?
- [Django]-Exception while installing packages in Python