]> git.sommitrealweird.co.uk Git - sommitrealweird.git/commitdiff
add in wsgi script
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Wed, 30 Sep 2009 21:27:57 +0000 (22:27 +0100)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Wed, 30 Sep 2009 21:27:57 +0000 (22:27 +0100)
sommitrealweird/django.wsgi [new file with mode: 0644]

diff --git a/sommitrealweird/django.wsgi b/sommitrealweird/django.wsgi
new file mode 100644 (file)
index 0000000..3fa5191
--- /dev/null
@@ -0,0 +1,9 @@
+import os, sys
+sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
+sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '.')))
+sys.path.append('/usr/local/django')
+os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
+
+import django.core.handlers.wsgi
+
+application = django.core.handlers.wsgi.WSGIHandler()