Update esp.wsgi to use django.core.wsgi public API

Resolves #1242.(cherry picked from commit b42ef2968d5dd165400b296fbc5c3f97df2c984e)