Changes between Version 4 and Version 5 of TracModWSGI
- Timestamp:
- 2019-02-22T10:54:47+10:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracModWSGI
v4 v5 14 14 {{{#!python 15 15 def application(environ, start_request): 16 # Add this to configwhen you have multiple projects16 # Add this when you have multiple projects 17 17 environ.setdefault('trac.env_parent_dir', '/usr/share/trac/projects') 18 18 .. … … 413 413 //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.// 414 414 415 === Missing Headers and Footers416 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 {{{#!apache422 WSGIPythonOptimize 0423 }}}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 429 415 === Other resources 430 416