Commit cde41424 authored by Denis Bilenko's avatar Denis Bilenko

make examples/webchat/run.py work without PYTHONPATH

parent ed1de050
#!/usr/bin/python
from gevent import monkey; monkey.patch_all()
from gevent.wsgi import WSGIServer
import sys
import os
import traceback
from django.core.handlers.wsgi import WSGIHandler
from django.core.management import call_command
from django.core.signals import got_request_exception
sys.path.append('..')
os.environ['DJANGO_SETTINGS_MODULE'] = 'webchat.settings'
def exception_printer(sender, **kwargs):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment