From 567e4e441131434c855f9232553ae939962def99 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 3 Feb 2006 15:18:20 +0000 Subject: Fixed #1323 -- Added ENABLE_PSYCO. Thanks, Wojtek. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2239 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/handlers/modpython.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'django/core/handlers/modpython.py') diff --git a/django/core/handlers/modpython.py b/django/core/handlers/modpython.py index e52879065f..eec35ff072 100644 --- a/django/core/handlers/modpython.py +++ b/django/core/handlers/modpython.py @@ -130,6 +130,10 @@ class ModPythonHandler(BaseHandler): from django.conf import settings from django.core import db + if settings.ENABLE_PSYCO: + import psyco + psyco.profile() + # if we need to set up middleware, now that settings works we can do it now. if self._request_middleware is None: self.load_middleware() -- cgit v1.3