summaryrefslogtreecommitdiffstats
path: root/lib/apache2/patchwork.wsgi
diff options
context:
space:
mode:
Diffstat (limited to 'lib/apache2/patchwork.wsgi')
-rw-r--r--lib/apache2/patchwork.wsgi17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/apache2/patchwork.wsgi b/lib/apache2/patchwork.wsgi
new file mode 100644
index 0000000..0488b48
--- /dev/null
+++ b/lib/apache2/patchwork.wsgi
@@ -0,0 +1,17 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Apache2 WSGI handler for patchwork
+#
+# Copyright © 2010 martin f. krafft <madduck@madduck.net>
+# Released under the GNU General Public License v2 or later.
+#
+import os
+import sys
+
+basedir = os.path.dirname(__file__)
+sys.path.append(basedir)
+
+os.environ['DJANGO_SETTINGS_MODULE'] = 'apps.settings'
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()