AttributeError: 'module' object has no attribute APPNAME error when forgetting __init__.py
|Reported by:||Sam Thompson||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When adding an app to INSTALLED_APPS, if the app in question isn't a proper module (i.e. has init.py) the error
AttributeError: 'module' object has no attribute APPNAME
appears, where APPNAME is the first part of the path that fails.
Mostly, this is just not a very useful error message. I'm attaching a patch with a suggested message.
I have no idea what to categorize this as.