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?
Which version of the application are you using?:
It`s Django 3.0.4 on the bitnami Instance I get in lightsail when creating a new django project
Have you installed any plugin or modified any configuration file?:
Went throught this tutorial: https://aws.amazon.com/getting-started/hands-on/deploy-python-application/
Nut not with the tutorial app, but with my own app