Permalink
Browse files

Removed some unnecessary files from www

  • Loading branch information...
1 parent edff7dc commit 1e83b1ff51be3fbdecb65332d91b6c02c9e25498 @codeinthehole committed Jan 3, 2012
File renamed without changes.
View
@@ -0,0 +1,22 @@
+import os
+import sys
+import site
+
+sys.stdout = sys.stderr
+
+# Project root
+root = '/var/www/codeinthehole.com/builds/prod/'
+sys.path.insert(0, root)
+
+# Packages from virtualenv
+activate_this = '/var/www/codeinthehole/virtualenvs/prod/bin/activate_this.py'
+execfile(activate_this, dict(__file__=activate_this))
+
+# Set environmental variable for Django and fire WSGI handler
+os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
+os.environ['DJANGO_CONF'] = 'conf.prod'
+import django.core.handlers.wsgi
+_application = django.core.handlers.wsgi.WSGIHandler()
+
+def application(environ, start_response):
+ return _application(environ, start_response)
View
No changes.

0 comments on commit 1e83b1f

Please sign in to comment.