aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/templates/django.wsgi
diff options
context:
space:
mode:
Diffstat (limited to 'modules/apache/templates/django.wsgi')
-rw-r--r--modules/apache/templates/django.wsgi9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/apache/templates/django.wsgi b/modules/apache/templates/django.wsgi
new file mode 100644
index 00000000..c6e19101
--- /dev/null
+++ b/modules/apache/templates/django.wsgi
@@ -0,0 +1,9 @@
+#!/usr/bin/python
+import os, sys
+sys.path.append('<%= module_path %>')
+os.environ['DJANGO_SETTINGS_MODULE'] = '<%= module =%>.settings'
+
+import django.core.handlers.wsgi
+
+application = django.core.handlers.wsgi.WSGIHandler()
+