Changeset 3877
- Timestamp:
- 09/27/06 21:31:05 (2 years ago)
- Files:
-
- django/trunk/django/conf/global_settings.py (modified) (1 diff)
- django/trunk/django/core/handlers/modpython.py (modified) (1 diff)
- django/trunk/django/core/handlers/wsgi.py (modified) (1 diff)
- django/trunk/docs/settings.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/conf/global_settings.py
r3837 r3877 224 224 MONTH_DAY_FORMAT = 'F j' 225 225 226 # Whether to enable Psyco, which optimizes Python code. Requires Psyco.227 # http://psyco.sourceforge.net/228 ENABLE_PSYCO = False229 230 226 # Do you want to manage transactions manually? 231 227 # Hint: you really don't! django/trunk/django/core/handlers/modpython.py
r3876 r3877 140 140 from django.conf import settings 141 141 142 if settings.ENABLE_PSYCO:143 import psyco144 psyco.profile()145 146 142 # if we need to set up middleware, now that settings works we can do it now. 147 143 if self._request_middleware is None: django/trunk/django/core/handlers/wsgi.py
r3875 r3877 175 175 from django.conf import settings 176 176 177 if settings.ENABLE_PSYCO:178 import psyco179 psyco.profile()180 181 177 # Set up middleware if needed. We couldn't do this earlier, because 182 178 # settings weren't available. django/trunk/docs/settings.txt
r3837 r3877 401 401 or ``django.core.mail.mail_managers``. You'll probably want to include the 402 402 trailing space. 403 404 ENABLE_PSYCO405 ------------406 407 Default: ``False``408 409 Whether to enable Psyco, which optimizes Python code. Requires Psyco_.410 411 .. _Psyco: http://psyco.sourceforge.net/412 403 413 404 IGNORABLE_404_ENDS
