Changeset 586


Ignore:
Timestamp:
10/15/08 16:18:03 (5 years ago)
Author:
rcorsaro
Message:

settings and python path are now dealt with in apache conf and trac.wsgi.

Location:
trunk/plugins/oforgeplugin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/oforgeplugin/oforge/api.py

    r563 r586  
    1616from trac.db import get_column_names, Column, Index, DatabaseManager 
    1717from trac.perm import PermissionSystem 
    18  
    19 os.environ['DJANGO_SETTINGS_MODULE'] = 'oforgetools.settings' 
    2018 
    2119from oforgetools.projects.models import Project 
  • trunk/plugins/oforgeplugin/share/cgi-bin/trac.wsgi

    r511 r586  
    55#   http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac 
    66#   http://trac.edgewall.org/wiki/TracModWSGI 
     7import os 
    78import sys 
    89sys.stdout = sys.stderr 
     
    1213trac.db.postgres_backend.PostgreSQLConnection.poolable = False 
    1314 
    14 from trac.web.main import dispatch_request as application 
     15from trac.web.main import dispatch_request 
    1516 
     17def application(environ, start_request): 
     18    os.environ['DJANGO_SETTINGS_MODULE'] = environ.get( 
     19            'oforge.django_settings', 'oforgetools.settings') 
     20    return dispatch_request(environ, start_request) 
     21 
Note: See TracChangeset for help on using the changeset viewer.