Skip to content

Commit

Permalink
Removed ENABLE_PSYCO setting. If you still need to use this, write cu…
Browse files Browse the repository at this point in the history
…stom middleware that activates psyco for you.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3877 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Sep 28, 2006
1 parent beeb719 commit f638234
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
4 changes: 0 additions & 4 deletions django/conf/global_settings.py
Expand Up @@ -223,10 +223,6 @@
# 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
Expand Down
4 changes: 0 additions & 4 deletions django/core/handlers/modpython.py
Expand Up @@ -139,10 +139,6 @@ def __call__(self, req):
# 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()
Expand Down
4 changes: 0 additions & 4 deletions django/core/handlers/wsgi.py
Expand Up @@ -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:
Expand Down
9 changes: 0 additions & 9 deletions docs/settings.txt
Expand Up @@ -401,15 +401,6 @@ Subject-line prefix for e-mail messages sent with ``django.core.mail.mail_admins
or ``django.core.mail.mail_managers``. You'll probably want to include the
trailing space.

ENABLE_PSYCO
------------

Default: ``False``

Whether to enable Psyco, which optimizes Python code. Requires Psyco_.

.. _Psyco: http://psyco.sourceforge.net/

IGNORABLE_404_ENDS
------------------

Expand Down

0 comments on commit f638234

Please sign in to comment.