views:

71

answers:

3

When Rails applications seem hard to deploy (or used to be), what about Django, TurboGears, Symfony, CakePHP -- can they be simply deployed using mod_python or mod_php? Actually, won't it need something like a mod_django so that the code can run in a "Django" environment? (Just like Rails' script/console or Rails 3's rails console)

+3  A: 

Django applications can certainly be deployed with minimum fuss using mod_python.

That said, experienced people will tell you to use the more lightweight and efficient mod_wsgi instead of mod_python. This too can be done with minimum effort. I have done it on multiple occasions and app deployment was always the least of my worries.

Update

@Rebus has it right:

mod_python is not being actively developed anymore, use mod_wsgi

Manoj Govindan
mod_python is not being actively developed anymore, use `mod_wsgi`.
rebus
Updated my answer. Thanks!
Manoj Govindan
+1  A: 

There are a number of ways to deploy a Django site. See the Django Docs or the Django book. As mentioned mod_python is dead and mod_wsgi is the recommended method. Another method which has been making more noise lately is gunicorn. You can see Eric Holscher's blog post about how easy the deployment can be with it.

Mark Lavin
A: 

For CakePHP if you have a standard PHP installation, you probably, at most, only need to load mod_rewrite. This module is often included in the build, though.

Leo