“AttributeError: ‘module’ object has no attribute ‘blah’”
- The obvious cause of this is that the settings.py doesn’t have the directory containing blah listed in INSTALLED_APPS.
- A less obvious cause: you’ll also get this error if the directory doesn’t contain a file __init__.py.
May 15th, 2008 at 12:18 am
Thanks! I would have never guessed that from the stack trace.
June 22nd, 2008 at 12:37 am
I’m just having the same error, and either of those do not apply. I have the app listed in INSTALLED_APPS, and I have the __init__.py.
July 13th, 2008 at 1:07 pm
Yes, that was mine
__init__.py
Thx to google and you!