1
0
mirror of https://github.com/django/django.git synced 2025-10-28 16:16:12 +00:00

Fixed #1323 -- Added ENABLE_PSYCO. Thanks, Wojtek.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty
2006-02-03 15:18:20 +00:00
parent bd41a51942
commit 567e4e4411
4 changed files with 23 additions and 0 deletions

View File

@@ -145,6 +145,10 @@ class WSGIHandler(BaseHandler):
from django.conf import settings
from django.core import db
if settings.ENABLE_PSYCO:
import psyco
psyco.profile()
# Set up middleware if needed. We couldn't do this earlier, because
# settings weren't available.
if self._request_middleware is None: