Example files for uWSGI deployment, moved WSGI file to "application"

This commit is contained in:
2011-05-04 15:54:57 +01:00
parent 7164719f94
commit e2a71c4312
3 changed files with 11 additions and 12 deletions

7
application.py Normal file
View File

@@ -0,0 +1,7 @@
import sys
import os
import django.core.handlers.wsgi
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "app")))
os.environ['DJANGO_SETTINGS_MODULE'] = 'app.settings'
application = django.core.handlers.wsgi.WSGIHandler()