Ticket #7187: modpython.patch

File modpython.patch, 596 bytes (added by Andrei <andrei@…>, 17 years ago)
  • django/core/handlers/modpython.py

     
    143143    def __call__(self, req):
    144144        # mod_python fakes the environ, and thus doesn't process SetEnv.  This fixes that
    145145        os.environ.update(req.subprocess_env)
     146        import sys
     147        sys.path.append(req.hlist.directory)
    146148
    147149        # now that the environ works we can see the correct settings, so imports
    148150        # that use settings now can work
Back to Top