Fix production deployment with Django 1.5