Wednesday, February 29, 2012

#23: Moving admin.site.register to admin.py so shell works by jtatum for p2pu/lernanta - Pull Request - GitHub

#23: Moving admin.site.register to admin.py so shell works by jtatum for p2pu/lernanta - Pull Request - GitHub: "When using autodiscover(), admin calls should be in admin.py. This is referenced in the django docs under http://docs.djangoproject.com/en/dev/ref/contrib/admin/. This change allows models to be imported in the shell, which is really handy for debugging."

'via Blog this'