Permalink
Browse files

Move django.wsgi and webroot outside project root

  • Loading branch information...
1 parent 3840447 commit d3d0674ddde78b7be88f1cc506dda00dd0463180 @joneskoo joneskoo committed Nov 12, 2011
Showing with 2 additions and 10 deletions.
  1. +2 −10 { → webroot}/django.wsgi.template
View
12 django.wsgi.template → webroot/django.wsgi.template
@@ -1,15 +1,7 @@
#!/usr/bin/env python
-import os, sys
+import os
-# path is the parent directory of this script ('/var/www' in this case)
-path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-
-sys.path.append(os.path.dirname(os.path.abspath(__file__)))
-
-# we check for path because we're told to at the tail end of
-# http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIReloadMechanism
-if path not in sys.path:
- sys.path.append(path)
+# PYTHONPATH should include the project root.
os.environ['DJANGO_SETTINGS_MODULE'] = 'sikteeri.settings'

0 comments on commit d3d0674

Please sign in to comment.