Jun 112009
 

I’m trying to study Django more, this needs to get rid of the limitation of running test locally.

I was doing port forwarding and then I thought, “anyway I will try deployment later on, why not just start the trial from now?”

So, I started looking around, of course first thing came to mind is mod_python with apache httpd, but my Ubuntu has lighttpd running already (I have no idea when and why I deployed it), and then I thought, “yea, apache httpd is way too heavy, let me try lighttpd”.

It turned out lighttpd is not perfect in administration though it may get me some performance gain. I have to launch fastcgi by myself, and in a real production environment it means I need to write some monitoring (parent) process to make sure the fastcgi server is running for all the time.

Anyway I make django running on lighttpd, there are some URL mess and I still haven’t figured everything out, it seems django+lighttpd prefer application-per-domain instead of application-per-URI, I will check more to see if it is the case or not.

Jun 102009
 

I got template not found etc error while playing with Django, and obviously my turtorial material is not up to date.

Symptom is described here:

http://sam.bluwiki.com/blog/2008/07/django-error-while-importing-urlconf.php

“If you’re getting it, it’s likely you updated to the latest Django SVN release, and haven’t upgraded your admin site’s configuration.”

and the solution link is on the same page, which, in short, add following lines to urls.py:

from django.contrib import admin
admin.autodiscover()

and uncomment this line:

(r’^admin/(.*)’, admin.site.root),

that’s it …