Integrate Wordpress and Django

Last year Wordpress got an award as best Open Source CMS software and the reason is clear: it’s easy to setup, low on resources, very customizable and full of useful extensions. So unless you have very specific deployment requirements and if your blog is not part of your core technology, you may get the best of both worlds by using Wordpress for blogging and use a web framework for everything else. Not reinventing the wheel is very important in post-agile world, after all.

Being a Django monkey, I’d like to share some tips on how to make Wordpress and Django live together:
Read the rest of this entry »

Add to StumbleUpon Add to del.icio.us Add to Mixx!     

Integrate Tornado in Django

Tornado is a nice python WSGI-compliant web server developed by guys at FriendFeed. It’s primarily thought as application server for python web frameworks and according to FriendFeed benchmarks, it’s blazing fast thanks to its non-blocking connections.

UPDATE: For more performance info, James Abley pointed me to a very complete benchmark of available Python asynchronous webservers. It looks like Tornado is a real monster of concurrency.

There are already some how-to’s on the web on plugging Django web framework into Tornado webserver. A quick recap:

  1. A tutorial on Tornado, Django and nginx by Jeremy Bowers.
  2. How to import django framework inside a Tornado project by Lincoln Loop.
  3. A snippet by lawgon.

My approach is slightly different as I wanted to run Tornado using Django management command-line interface.

Read the rest of this entry »

Add to StumbleUpon Add to del.icio.us Add to Mixx!