Edgewall Software

Changes between Version 56 and Version 57 of TracModWSGI


Ignore:
Timestamp:
Mar 14, 2014, 12:32:35 PM (10 years ago)
Author:
anonymous
Comment:

fixed minor typo and adjusted formatting to highlight code as python

Legend:

Unmodified
Added
Removed
Modified
  • TracModWSGI

    v56 v57  
    2525The `TRAC_ENV` variable should naturally be the directory for your Trac environment (if you have several Trac environments in a directory, you can also use `TRAC_ENV_PARENT_DIR` instead), while the `PYTHON_EGG_CACHE` should be a directory where Python can temporarily extract Python eggs.
    2626On Windows, the Python Egg cache can be found in `%AppData%\Roaming`, for example:
    27 {{{
    28 os.environ['PYTHON_EGG_CACHE'] = r'C:\Users\Administrator\AppData\Roaming\Python-Eggs\trac-1.0-py2.7-win32.egg-tmp\trac'
     27{{{#!python
     28os.environ['PYTHON_EGG_CACHE'] = 'C:\Users\Administrator\AppData\Roaming\Python-Eggs\trac-1.0-py2.7-win32.egg-tmp\trac'
    2929}}}
    3030
     
    394394But it's not necessary to edit the source of Trac, the following lines in `trac.wsgi` will also work:
    395395
    396 {{{
     396{{{#!python
    397397import trac.db.postgres_backend
    398398trac.db.postgres_backend.PostgreSQLConnection.poolable = False
     
    401401or
    402402
    403 {{{
     403{{{#!python
    404404import trac.db.mysql_backend
    405405trac.db.mysql_backend.MySQLConnection.poolable = False