more correct check for django project dir
fixed logging conf for django 1.3