Tuesday, July 28, 2009

First steps on Django

While I have been coding in PHP for last years, I think that it's time to change. In the next few weeks, I will try a few nice web frameworks.
First stone will be Django. This Python framework looks interesting:
  • Google supports it with its fork for "Google App Engine".
  • Its community has grown a lot on last year since the launch of version 1.0.
  • Python is now a very mature and consolidated language.
  • It has a nice and simple template system.
  • Its development server seems handy.
My former colleague, Juanjo Alvarez, has done in his blog a deep analisys of Django (in Spanish).

First problems: as a web developer, I am coding now in WinXP for compatibility reasons. The development server does not answer after a few develpmente cycles. Restarting again the server on the same port doesn´t work. My solution at the moment is to restart the server in a different port (8001 instead of default 8000, i.e.).
Users who work in Linux doesn't report any problem with the development server. It seems a configuration or version bug.

2 comments:

  1. what server do you use? is apache with python module enough for django?

    ReplyDelete
  2. I am using django development server for development, obviously.
    For production, the usual module is WSGI for Apache, as it serves for different Python Modules besides Django: web.py, pylons, etc. Take care of setting correct preferences for static files on Apache.

    ReplyDelete