| 437 | === Missing Headers and Footers |
| 438 | |
| 439 | If python optimizations are turned on, then headers and footers will not be rendered. |
| 440 | |
| 441 | In your WSGI mod configuration file, the `WSGIPythonOptimize` setting must be set to `0` as follows (`1` or `2` will not work): |
| 442 | |
| 443 | {{{#!apache |
| 444 | WSGIPythonOptimize 0 |
| 445 | }}} |
| 446 | |
| 447 | On Ubuntu, the WSGI mod configuration is at `/etc/apache2/mods-enabled/wsgi.conf`. |
| 448 | |
| 449 | NOTE: This is the WSGI equivalent of the same issue that happens with `PythonOptimize On` (see [trac:#8956]). |
| 450 | |