Rob Hudson wrote:
> Hello,
> 
> I'm new to the list but I have a suspicion that Paste Deploy could be
> an effective tool for deploying Django apps if I took the time to
> figure it out.
> 
> I've read up on Capistrano, and while it looks like it would be a good
> tool it has a lot of Rails specific things (and it's Ruby, so
> extending it would be another language we don't use).
> 
> I asked about an equivalent of Capistrano but in Python some time ago
> on the Django list and someone mentioned Paste.  Now that we've
> deployed a few Django apps and know first hand the details we can miss
> when doing so I thought it was time to think about automating it.
> 
> I'm mostly here to ask:
> 
> 1) If it's possible to deploy Django apps with Paste Deploy.  This
> means using SSH to remote to a server, check out the code base from a
> repository, possibly run "python setup.py command" to execute a
> makefile of sorts, import data into a database, etc.

Capistrano handles things like ssh'ing on your behalf and other stuff. 
You could potentially use it with Paste Deploy, or whatever other 
project.  I looked at it, and decided it just wasn't interesting enough 
for me, but I think there are people using Capistrano with Python 
projects.  Paste Deploy is more configuration-oriented.

But anyway, typically an installation process looks like:

* Created an isolated environment, with virtual-python, workingenv, or 
zc.buildout
* Install your application (as an egg, using easy_install).  All 
applications are setuptools libraries.
* Run "paster make-config Application config_file.ini", which will ask 
the application for a basic config file to start with.
* Edit that config file.
* Run "paster setup-app config_file.ini", which calls an application 
initialization routine.
* Either plug that configuration into a larger system/site, or use it alone.
* Use "paster serve config_file.ini" to start the application.

Incidentally there is a Paste Deploy wrapper around Django at 
http://svn.pythonpaste.org/Paste/DjangoPaste/trunk

Yury Yurevich was doing some work on it, and I think using it.  It 
basically allows you to configure your Django application using Paste 
Deploy, and make Django better respect the base WSGI path and multiple 
configurations.

> 2) Whether there are articles or blog posts written about this
> specifically to get us off the ground faster.

I'm not sure; Pylons people have been exploring this ground more 
specifically, and their documentation is probably the best place to 
look.  A lot of it can apply to Django, using DjangoPaste.  I'm not sure 
what the best docs are for deployment in Pylons.

-- 
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
             | Write code, do good | http://topp.openplans.org/careers

_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to