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

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.

×
1 answer

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

by Justin Ellingwood
Django is a powerful web framework that can help you get your Python application or website off the ground quickly. Django includes a simplified development server for testing your code locally, but for anything even slightly production related, a more secure and powerful web...
Submit an Answer