diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-09-28 02:31:05 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-09-28 02:31:05 +0000 |
| commit | f638234932e4346f29dfbaeabf58bb1e4d2ff117 (patch) | |
| tree | b874bb10161f5c68ff97fa6dcfe25ab3f6d8c8c4 /django | |
| parent | beeb719c12f537b60a262e9f4f4e1f8dbc7c607d (diff) | |
Removed ENABLE_PSYCO setting. If you still need to use this, write custom middleware that activates psyco for you.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3877 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
| -rw-r--r-- | django/conf/global_settings.py | 4 | ||||
| -rw-r--r-- | django/core/handlers/modpython.py | 4 | ||||
| -rw-r--r-- | django/core/handlers/wsgi.py | 4 |
3 files changed, 0 insertions, 12 deletions
diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py index 11b1c0e08a..5b3795fade 100644 --- a/django/conf/global_settings.py +++ b/django/conf/global_settings.py @@ -223,10 +223,6 @@ YEAR_MONTH_FORMAT = 'F Y' # http://www.djangoproject.com/documentation/templates/#now MONTH_DAY_FORMAT = 'F j' -# Whether to enable Psyco, which optimizes Python code. Requires Psyco. -# http://psyco.sourceforge.net/ -ENABLE_PSYCO = False - # Do you want to manage transactions manually? # Hint: you really don't! TRANSACTIONS_MANAGED = False diff --git a/django/core/handlers/modpython.py b/django/core/handlers/modpython.py index d7f214ba90..bf759db068 100644 --- a/django/core/handlers/modpython.py +++ b/django/core/handlers/modpython.py @@ -139,10 +139,6 @@ class ModPythonHandler(BaseHandler): # that use settings now can work from django.conf import settings - 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() diff --git a/django/core/handlers/wsgi.py b/django/core/handlers/wsgi.py index 4d5c65b070..2998bd31f6 100644 --- a/django/core/handlers/wsgi.py +++ b/django/core/handlers/wsgi.py @@ -174,10 +174,6 @@ class WSGIHandler(BaseHandler): def __call__(self, environ, start_response): from django.conf import settings - 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: |
