Adapt the project to Django 1.6