| | 116 | |
| | 117 | To alleviate such problem, you could change `if plat...` to `if not settings.DEBUG and plat...`, having done `from django.conf import settings` first, short example |
| | 118 | |
| | 119 | {{{ |
| | 120 | #!python |
| | 121 | from django.conf import settings |
| | 122 | import psyco |
| | 123 | import platform |
| | 124 | import re |
| | 125 | |
| | 126 | if not settings.DEBUG and platform.architecture()[0] == '32bit': |
| | 127 | # Enable psyco, like earlier. |
| | 128 | |
| | 129 | # Define middleware, like earlier. |
| | 130 | }}} |
| | 131 | |
| | 132 | This will simply disable psyco when you've got DEBUG set to True, which probably is a desirable effect. |