Django setup improvements
Posted May 6 at 10:47 CDT by Remi in Django - 8 comment(s)
We just rolled out a number of improvements to our Django setup:
- Support for mod_wsgi: Setting up a default Django app with mod_wsgi is now an option in our one-click installer. So if you prefer mod_wsgi over mod_python you will no longer have to install it manually. I just ran a simple benchmark using "ab -n 5000 -c 2" against a default Django site using mod_wsgi and the same using mod_python. Both were using 2 Apache worker processes. mod_wsgi was slightly faster (1400 req/sec vs 1250 req/sec) and was using slightly less memory (10MB per Apache worker process vs 12MB). Note that you can also setup a standalone mod_wsgi application in our control panel (without Django).
- Support for the latest trunk: When you create a Django app you now have the option to use the latest trunk.
- More django docs: We've added some more knowledge base entries at https://help.webfaction.com/django and we'll keep on adding more.
8 comments:
Alice Bevan-McGregor said on 2008-05-06 11:51:47:
Now all that's missing is trunk TurboGears/Pylons, trunk Trac, and Trac via something other than the horribly slow CGI interface. :PI've been using Trac's trunk for quite some time now.
Alice.
Bernd said on 2008-05-06 15:28:17:
what does "Support for the latest trunk" exactly means? Will there be any trunk updates or will the created trunk version remain?
Bernd
jorge said on 2008-05-06 15:30:27:
awesome, I was looking forward for the mod_wsgi
Manuel said on 2008-05-06 16:20:50:
WoW! WebFaction is a Django heaven!/Please note that the blog post summary on the home page is "WebFaction turns five" which is an old post, not the latest. In my opinion, you should always put the latest post on the home page./
Sean Fulmer said on 2008-05-06 16:43:25:
@Alice - we've recently added more support staff, which frees other people up for development of new installers :)@Bernd - every night, we pull a fresh export from the django trunk and roll that into the installer. So, when you create a new "django trunk" app in the control panel, it's an export, not a live checkout. If you want to be able to update your libs from SVN, you'll still need to use the procedure in our KB. So, in other words, the installer is updated every night, but your apps are not.
@jorge - enjoy :)
@Manuel - thanks for the heads up!
kevin said on 2008-05-06 19:43:51:
this is just plain awesome. great job!
Sergey Lipnevich said on 2008-05-07 06:25:23:
I didn't know mod_wsgi is now a separate application and was using CherryPy as WSGI server. Would you recommend to keep CherryPy (it seems more economical as there's no Apache) or switch to mod_wsgi application? Thank you!
@Sergey - If CherryPy is working for you there's no reason to switch. I'm pretty sure mod_wsgi would perform better but I'm also pretty sure it'll use more resources. It's your call!