Report this

What is the reason for this report?

Asking information about django hosting ubuntu

Posted on July 3, 2020

I am getting loading page after hosting django app on ubuntu 20.04 i got this error Gateway Timeout The gateway did not receive a timely response from the upstream server or application.

Apache/2.4.41 (Ubuntu) Server at 206.189.140.138 Port 80

if you want the commond sequence then i can show you



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 @akshaykoshti401,

I would recommend following the steps from this tutorial here on how to deploy Django on Ubuntu 20.04:

https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-20-04

It shows how to do this with Nginx rather than Apache.

If you prefer apache, I would recommend this tutorial here instead:

https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-16-04

Hope that this helps! Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.