How to deploy django app to D.O. app platform

Posted August 24, 2021 448 views
PythonDjangoPython FrameworksDevelopmentDigitalOcean App Platform

I have been following the tutorial to the “tee”, but am not able to deploy my app. First I tried with an already working app on my local dev environment, but had no luck.
Subsequently, I attempted to launch a django app following all your instructions for a new django app,
still I am getting the following error:


  • rule: DOMAIN_FAILED databases:
  • engine: PG name: cis114app num_nodes: 1 size: db-s-dev-database version: “12” name: cis-114-app region: nyc services:
  • environment_slug: python envs:
    • key: DATABASEURL scope: RUNANDBUILDTIME value: ${cis114app.DATABASE_URL}
    • key: DEBUG scope: RUNANDBUILD_TIME value: “True”
    • key: DATABASEURL scope: RUNTIME value: ${cis114app.DATABASEURL} github: branch: main deployonpush: true repo: reevotek/cis114-app httpport: 8080 instancecount: 1 instancesize_slug: basic-xxs name: cis-114-app routes:
    • path: / runcommand: gunicorn –worker-tmp-dir /dev/shm cis114app.wsgi source_dir: / `

Please advice.

Best regards,

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.

Submit an Answer
1 answer

👋 @reevotekdev

I don’t see any immediate issues with the configs you posted. Check the Deployment -> Deploy logs to see if there are any errors that might help identify the problem. In the past I’ve seen the wrong reference to the .wsgi file in the run command, ensure that is correct.