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.
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.
我用mod_wsgi取得了成功
In my previous work we had real genius guy on deployment duties, he deployed application (Python, SQL, Perl and Java code) as set of deb files built for Ubuntu. Unfortunately now, I have no such support. We are deploying apps manually to virtualenv-ed environments with separate nginx configs for FastCGI. We use paver to deploy to remote servers. It's painful, but it works.
I use mod_python, and have every site in a git repository with the following subdirs:
I have mysite/settings.py
in .gitignore
, and work like this:
git checkout && git reset --hard && sudo /etc/init.d/apache2 restart
on webserver repo to get up-to-date version to its working copy and restart apache 最简单的方法是使用http://djangofriendly.com/hosts/上的一个网站,它将为您提供托管和设置,但即使您想要自己滚动它也可以让您看到设置其他网站正在使用什么。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.