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.
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.
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.
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.
I have had success with mod_wsgi
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With