Django

Code

Changeset 3877

Show
Ignore:
Timestamp:
09/27/06 21:31:05 (2 years ago)
Author:
adrian
Message:

Removed ENABLE_PSYCO setting. If you still need to use this, write custom middleware that activates psyco for you.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/conf/global_settings.py

    r3837 r3877  
    224224MONTH_DAY_FORMAT = 'F j' 
    225225 
    226 # Whether to enable Psyco, which optimizes Python code. Requires Psyco. 
    227 # http://psyco.sourceforge.net/ 
    228 ENABLE_PSYCO = False 
    229  
    230226# Do you want to manage transactions manually? 
    231227# Hint: you really don't! 
  • django/trunk/django/core/handlers/modpython.py

    r3876 r3877  
    140140        from django.conf import settings 
    141141 
    142         if settings.ENABLE_PSYCO: 
    143             import psyco 
    144             psyco.profile() 
    145  
    146142        # if we need to set up middleware, now that settings works we can do it now. 
    147143        if self._request_middleware is None: 
  • django/trunk/django/core/handlers/wsgi.py

    r3875 r3877  
    175175        from django.conf import settings 
    176176 
    177         if settings.ENABLE_PSYCO: 
    178             import psyco 
    179             psyco.profile() 
    180  
    181177        # Set up middleware if needed. We couldn't do this earlier, because 
    182178        # settings weren't available. 
  • django/trunk/docs/settings.txt

    r3837 r3877  
    401401or ``django.core.mail.mail_managers``. You'll probably want to include the 
    402402trailing space. 
    403  
    404 ENABLE_PSYCO 
    405 ------------ 
    406  
    407 Default: ``False`` 
    408  
    409 Whether to enable Psyco, which optimizes Python code. Requires Psyco_. 
    410  
    411 .. _Psyco: http://psyco.sourceforge.net/ 
    412403 
    413404IGNORABLE_404_ENDS