Moved code to Django 1.4 - Logging not considered