Permalink
Browse files

cleaned up deploy directory to match 0.9a2

  • Loading branch information...
1 parent 384a4b1 commit 1d95b6b15dd86da959741232811356fa6cfebf49 @brosner brosner committed Dec 28, 2010
@@ -1,37 +0,0 @@
-import os
-import sys
-
-from os.path import abspath, dirname, join
-from site import addsitedir
-
-# activate virtualenv
-VIRTUALENV_BASE = "/Users/brian/virtualenvs/pinax-dev"
-if not VIRTUALENV_BASE:
- raise Exception("VIRTUALENV_BASE is not set correctly.")
-
-activate_this = join(VIRTUALENV_BASE, "bin/activate_this.py")
-execfile(activate_this, dict(__file__=activate_this))
-
-from django.core.handlers.modpython import ModPythonHandler
-
-
-
-class PinaxModPythonHandler(ModPythonHandler):
- def __call__(self, req):
- # mod_python fakes the environ, and thus doesn't process SetEnv.
- # This fixes that. Django will call this again since there is no way
- # of overriding __call__ to just process the request.
- os.environ.update(req.subprocess_env)
- from django.conf import settings
-
- sys.path.insert(0, abspath(join(dirname(__file__), "../../")))
-
- sys.path.insert(0, join(settings.PINAX_ROOT, "apps"))
- sys.path.insert(0, join(settings.PROJECT_ROOT, "apps"))
-
- return super(PinaxModPythonHandler, self).__call__(req)
-
-
-def handler(req):
- # mod_python hooks into this function.
- return PinaxModPythonHandler()(req)
@@ -1,16 +0,0 @@
-import os
-import sys
-
-from os.path import abspath, dirname, join
-from site import addsitedir
-
-sys.path.insert(0, abspath(join(dirname(__file__), "../../")))
-
-from django.conf import settings
-os.environ["DJANGO_SETTINGS_MODULE"] = "pinaxsite_project.settings"
-
-sys.path.insert(0, join(settings.PINAX_ROOT, "apps"))
-sys.path.insert(0, join(settings.PROJECT_ROOT, "apps"))
-
-from django.core.servers.fastcgi import runfastcgi
-runfastcgi(method="threaded", daemonize="false")

0 comments on commit 1d95b6b

Please sign in to comment.