Edgewall Software

Changes between Version 1 and Version 2 of 1.3/TracModWSGI


Ignore:
Timestamp:
Jul 6, 2018, 1:21:37 AM (16 months ago)
Author:
Ryan J Ollos
Comment:

After switching from Genshi to Jinja2, headers and footers would no longer be missing with PYTHONOPTIMIZE > 0. Refs #12352.

Legend:

Unmodified
Added
Removed
Modified
  • 1.3/TracModWSGI

    v1 v2  
    413413//This is not a recommended approach though. See also the notes at the bottom of the [https://code.google.com/archive/p/modwsgi/wikis/IntegrationWithTrac.wiki mod_wsgi's IntegrationWithTrac] wiki page.//
    414414
    415 === Missing Headers and Footers
    416 
    417 If python optimizations are enabled, then headers and footers will not be rendered. An error will be raised in Trac 1.0.11 and later when optimizations are enabled.
    418 
    419 In your WSGI configuration file, the `WSGIPythonOptimize` setting must be set to `0` (`1` or `2` will not work):
    420 
    421 {{{#!apache
    422     WSGIPythonOptimize 0
    423 }}}
    424 
    425 On Ubuntu, the WSGI mod configuration is at `/etc/apache2/mods-enabled/wsgi.conf`.
    426 
    427 The same issue is seen with `PythonOptimize On` in [TracModPython#Pagelayoutissues ModPython].
    428 
    429415=== Other resources
    430416