Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying Django: How do you do it?

I have tried following guides like this one but it just didnt work for me.

So my question is this: What is a good guide for deploying Django, and how do you deploy your Django.

I keep hearing that capastrano is pretty nifty to use, but i have no idea as to how to work it or what it does (apart from automation of deploying code), or even if i want/need to use it or not.

like image 267
Josh Hunt Avatar asked Sep 22 '08 10:09

Josh Hunt


People also ask

What is the best way to deploy Django app?

What is the best approach to deploying a Django application? The fastest way to get a Django app deployed is probably Heroku, but I don't recommend it for a production app. The best way to deploy is to get an ubuntu server, setup nginx and a WSGI app like gunicorn. Nginx will handle all of your static files for you.

Is Django hard to deploy?

While Django is a great web framework, one of its primary weaknesses (in my opinion) is a lack of strong deployment documentation and community standards. There has been no easy way (until now, kinda) to deploy your apps into production in a reliable, simple fashion.


2 Answers

mod_wsgi in combination with a virtualenv for all the dependencies, a mercurial checkout into the virtualenv and a fabric recipe to check out the changes on the server.

I wrote an article about my usual workflow: Deploying Python Web Applications. Hope that helps.

like image 100
Armin Ronacher Avatar answered Oct 14 '22 04:10

Armin Ronacher


I have had success with mod_wsgi

like image 39
Toni Ruža Avatar answered Oct 14 '22 04:10

Toni Ruža