Fix support for Django 1.7.
Fix travis.yml