Fix wsgi.py script for a django 1.7

To fix issue #962