Hello all, I am a new DO user and am trying to create a website for the first time using the app platform. I was following the Deploy a Django App on App Platform tutorial and as I tried to deploy the website I came upon this error:
ModuleNotFoundError: No module named ‘<myapp>.wsgi’
I have been trying to find the source of this error for a second and have not been able to trace it.
Here is the link to the public github page: https://github.com/pablanothewind/market
Any information or help would be much appreciated. Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
You will need to Modify the Run Command setting to point to your application. For your example project is named
market
. So the modified command would begunicorn --worker-tmp-dir /dev/shm market.wsgi
.I’ve just tested this with your repository and it seems to be working as expected.
Here is an example Django project that you could also use as a reference:
On another note, as the storage on the DigitalOcean App Platform is ephemeral, one thing that you would want to consider is using an actual database rather than SQLite, I could suggest going with a Managed Postgres cluster:
Hope that this helps!
Best,
Bobby