шаблон wsgi django handler

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#!/usr/bin/env python
sys.path.append('%DJANGO%')
sys.path.append('%PROJECTDIR%')
import sys
import os
from django.core.handlers.wsgi import WSGIHandler
os.environ['DJANGO_SETTINGS_MODULE'] = '%PROJECT%.settings'
application = WSGIHandler()