[Django]-How to expose Django/Python application to the web?

2πŸ‘

βœ…

You need a HTTP server program like Apache or NGINX to serve your http requests. There will be a module like fastCGI or the better WSGI to interact with your python scripts/environment. These HTTP server programs and databases will be on a web host machine that you can rent that also provides static IPs and domain name resolution. For Django I can highly recommend WebFaction, they support it and have good documentation. You will probably also need to register a domain name via a registrar if you dont want to use the sample subdomain provided by your web host.

Update: for justhost, see this related question.

πŸ‘€Preet Kukreti

3πŸ‘

I’d go for Heroku. They have a free usage quota, and a really nice deployment mechanism. Here’s a nice article describing how to use it: https://devcenter.heroku.com/articles/django

πŸ‘€Gabi Purcaru

2πŸ‘

Easiest way to do that is to find a host online (such as pythonanywhere.com) to host your app on there, following their instructions, and your app will be online. They handle most of the issues with piggybacking a django project on a server.

2πŸ‘

The deployment how to in the documentation lists supported ways to deploy django.

πŸ‘€Burhan Khalid

Leave a comment