Deployment error with app platform

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:

Any information or help would be much appreciated. Thanks!

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
April 14, 2023

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 be gunicorn --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!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel