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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user