When developing a Django application, what is sys.path supposed to contain? The directory which conta开发者_StackOverflow中文版ins the project, or the directory of the project, or both?sys.path should
I have a directory which hosts all of my Django apps (C:\\My_Projects). I want to add this directory to my PYTHONPATH so I can call the apps directly.
I am trying to switch from using Python 2.6.5 to using Python 3.2a2. I am using OSX 10.6.4. However, when I open Idle in the Python 3.2a2 folder it cannot import any of the modules I installed to Pyth
I have added a path to the system pythonpath on linux and now i\'ve broken it. How may I remove it ? [EDIT]
Ok a short question: Is there any SIMPLE software with a GUI, that lets me manage my pythonpath, path python version in mac?
I am kind of annoyed by the installation of modules in python and had a lot of trouble with it, so it would be fantastic to find a good solution for it. Here are my issues:
Where is my pythonpath stored? When I write import sys sys.path Where does Python get that 开发者_开发技巧data?Python gets that data from the path attribute of the sys module. This path is a list,
I thought import sys sys.path.append(\"/home/me/mydir\") is appending a dir to my pythonpath if I print sys.path my dir i开发者_StackOverflows in there.
I\'m having problems with my PythonPath on windows XP, and I\'m wondering if I\'m doing something wrong.
Consider the following file\\directory structure: project\\ |django_project\\ __init__.py django_app1\\