Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating wsgi file to run standalone.

  • Loading branch information...
commit e9618d5d10b41fb940998997ad88d53db3ee2f23 1 parent 69a8aa1
@brandonsavage brandonsavage authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 wsgi/tuxedo.wsgi
View
11 wsgi/tuxedo.wsgi
@@ -1,5 +1,16 @@
import os
import site
+import sys
+
+current_dir = os.path.abspath(os.path.dirname(__file__))
+
+ALLDIRS = []
+
+ALLDIRS.append(os.path.abspath('%s/../vendor/lib/python' % current_dir))
+ALLDIRS.append(os.path.abspath('%s/../vendor/src' % current_dir))
+
+for item in ALLDIRS:
+ sys.path.append(item)
import django.core.handlers.wsgi
Please sign in to comment.
Something went wrong with that request. Please try again.