You may have stumbled upon this error:
File "C:\Python3\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'storages'
and maybe you even tried to fix it but nothing worked? Read this possible causes, there is a solution for each one of them!
Lets say you are missing a comma on some line in your installed apps :
INSTALLED_APPS = [
# [...] Other apps
# Error cause
'global'
'keys'
]
Then code will generate this error:
ModuleNotFoundError: No module named 'globalkeys'
Sometimes you just clone a project and forget running
pip install -r > requirements.txt
Sometimes you have Python 2 and Python 3 e.g. on you Linux and pip points to your Python 2 but the Django app runs on Python 3 packages. Then you need to run pip3
pip3 install -r > requirements.txt
You may have forgotten to save / commit / add app to your requirements file. Add the missing app to requirements.txt manually and then run:
pip install -r requirements.txt
don’t forget to run:
pip freeze > requirements.txt
afterwards.
sudo apt install pipenv
Did you make any mistakes when using DJANGO or you’ve seen one here? Tell me about your insights. Leave a comment with You are most welcome to see more posts of this type just go to home page