WSGI: Fix running in django's built-in server.

The 'uwsgi' module is only available when running from uWSGI.