Changeset 2239
- Timestamp:
- 02/03/06 09:18:20 (3 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
r2133 r2239 188 188 TIME_FORMAT = 'P' 189 189 190 # Whether to enable Psyco, which optimizes Python code. Requires Psyco. 191 # http://psyco.sourceforge.net/ 192 ENABLE_PSYCO = False 193 190 194 ############## 191 195 # MIDDLEWARE # django/trunk/django/core/handlers/modpython.py
r1500 r2239 131 131 from django.core import db 132 132 133 if settings.ENABLE_PSYCO: 134 import psyco 135 psyco.profile() 136 133 137 # if we need to set up middleware, now that settings works we can do it now. 134 138 if self._request_middleware is None: django/trunk/django/core/handlers/wsgi.py
r1442 r2239 146 146 from django.core import db 147 147 148 if settings.ENABLE_PSYCO: 149 import psyco 150 psyco.profile() 151 148 152 # Set up middleware if needed. We couldn't do this earlier, because 149 153 # settings weren't available. django/trunk/docs/settings.txt
r1925 r2239 343 343 or ``django.core.mail.mail_managers``. You'll probably want to include the 344 344 trailing space. 345 346 ENABLE_PSYCO 347 ------------ 348 349 Default: ``False`` 350 351 **New in Django development version.** 352 353 Whether to enable Psyco, which optimizes Python code. Requires Psyco_. 354 355 .. _Psyco: http://psyco.sourceforge.net/ 345 356 346 357 IGNORABLE_404_ENDS
