2 from gevent import monkey; monkey.patch_all()
5 from django.core.handlers.wsgi import WSGIHandler
6 from django.core.signals import got_request_exception
7 from django.core.management import call_command
9 os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
11 def exception_printer(sender, **kwargs):
14 got_request_exception.connect(exception_printer)
15 call_command('syncdb')
17 application = WSGIHandler()