I created a Django instance in AWS lightsail. I went through this tutorial: https://aws.amazon.com/getting-started/hands-on/deploy-python-application/
I did not use the tutorial django project from the tutorial, I used my own django project
Django running with WSGI on Apache gives me the error:
No module named 'statistics.models_es'; 'statistics' is not a package
statistics is one of the apps in my project. My project folder does not seem to be in the paths where django is looking for apps.
I have the line
in my wsgi.py
When I execute
python3 manage.py shell and then execute the line
from statistics.models_es import StatisticsClick, everything works fine.
Does somebody have an idea what goes wrong with adding the path to wsgi / apache?