#!/usr/bin/env python import os from django.core.handlers.wsgi import WSGIHandler from eventlet import api, backdoor, wsgi os.environ["DJANGO_SETTINGS_MODULE"] = "settings" api.spawn(api.tcp_server, api.tcp_listener(("127.0.0.1", 8001)), backdoor.backdoor) wsgi.server(api.tcp_listener(("127.0.0.1", 8000)), WSGIHandler())