Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Wsgi update #12

Merged
merged 1 commit into from

2 participants

@brandonsavage

No description provided.

@lonnen
Owner

Why prev_sys_path? You create it and then don't use it for anything.

@lonnen
Owner

remove that unused var and :shipit:

@brandonsavage brandonsavage merged commit 8711277 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 20, 2012
  1. @brandonsavage
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.