src/cm/wsgi.py
author Yves-Marie Haussonne <ymh.work+github@gmail.com>
Fri, 09 May 2014 18:34:46 +0200
changeset 655 cac6781d8b7f
parent 586 59cddf254ebd
permissions -rw-r--r--
add the file settings_dev.py to be cleaned, set cache timeout to 0 (i.e. disable cache for tests)

import os
import sys

os.environ['DJANGO_SETTINGS_MODULE'] = 'cm.settings'

path = os.environ['PROJECT_PATH']
if path not in sys.path:
    sys.path.append(path)

import django.core.handlers.wsgi
app = django.core.handlers.wsgi.WSGIHandler()