¡@

Home 

python Programming Glossary: smcho

Does Django or mod_wsgi modify sys.path when it's running?

http://stackoverflow.com/questions/4269445/does-django-or-mod-wsgi-modify-sys-path-when-its-running

run the following wsgi import os import sys mysite ' Users smcho Desktop django mysite' if mysite not in sys.path sys.path.insert.. if mysite not in sys.path sys.path.insert 0 ' Users smcho Desktop django mysite' django ' Users smcho Desktop django'.. 0 ' Users smcho Desktop django mysite' django ' Users smcho Desktop django' if django not in sys.path sys.path.insert 0..