web/ldtplatform/django_wsgi.py
author rougeronj
Fri, 16 Nov 2012 17:35:46 +0100
changeset 989 ede3d5bcbd8b
parent 586 9606d6acba7e
permissions -rw-r--r--
add unit test for unix os to test creation of contents without writing/reading permissions

import os

os.environ['DJANGO_SETTINGS_MODULE'] = 'ldtplatform.settings'
 
import django.core.handlers.wsgi

application = django.core.handlers.wsgi.WSGIHandler()

if os.environ.get('PYDEV_DEBUG', "False").lower() in ["true", "1", "t"]:
    import pydevd #@UnresolvedImport
    pydevd.settrace(suspend=False)