Skip to content Skip to sidebar Skip to footer

Importerror At /admin: No Module Named Defaults

I am upgrading my site from django 1.4 to django 1.6, and it kept came out with this error: ImportError at /admin: No module named defaults. Everywhere else say you should do: fr

Solution 1:

If you've removed all instances of defaults, then it's one of 2 problems.

1: Your compiled python files are still referencing old data. Sometimes happens. Remove all pyc files in your project to force recompilation. find . -name "*.pyc" | xargs rm

2: An app in INSTALLED_APPS is still using <1.6 syntax to set up patterns. Search your site-packages directory for this pattern or remove third party apps from INSTALLED_APPS until you find it.

Post a Comment for "Importerror At /admin: No Module Named Defaults"