#!/home2/snowbear/python/bin/python3.4
import sys, os
 
# Add a custom Python path.
sys.path.insert(0, "/home2/snowbear/python/lib/python3.4/site-packages/site-packages")
sys.path.append("/home2/snowbear/django_py3_4/geojunk")

# Switch to the directory of your project. (Optional.)
#os.chdir("/home2/snowbear/django_py3_4/geojunk")
 
# Set the DJANGO_SETTINGS_MODULE environment variable.
os.environ['DJANGO_SETTINGS_MODULE'] = "geojunk.settings"

# For newer Django versions.
try:
    from flup.server.fcgi import WSGIServer
    from django.core.wsgi import get_wsgi_application
    application = get_wsgi_application()
    WSGIServer(application).run()
except:
    import sys, traceback
    traceback.print_exc(file=open("errlog.txt","a"))

