1👍
✅
The code you’ve shown is using a lot of generics to try to import a module and generic code by its very nature has no business in knowing what your module name actually is.
In other examples you may find, its because you’ve gone down a rabbit hole. The place where the actual error is is so far away from your own code that the stack trace is showing too many steps past your own line of code.
I deduced after a minute of thinking that it must be from my settings.py, but it doesn’t actually say that anywhere in the trace. Why?
It actually does give you a hint at this
File "/home/jeff/Django/langalang/venv/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
It mentions its trying to create the INSTALLED_APPS
about half way up the trace
Source:stackexchange.com