Django

Code

Ticket #7187: modpython.patch

File modpython.patch, 0.6 kB (added by Andrei <andrei@nextbyte.ro>, 1 week ago)
  • django/core/handlers/modpython.py

    old new  
    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