I'm configuring autocompletion for python and django in vim. One of the problems is that I need to set an environment variable DJANGO_SETTINGS_MODULE=myapp.settings. The django tutorial states that
The value of DJANGO_SETTINGS_MODULE
should be in Python path syntax, e.g.
mysite.settings. Note that the
settings module should be on the
Python import search path.
PYTHONPATH environment variable to include your application's directory. Be sure it has an
.pth file in site-packages to point to your application's directory.
Install your application in site-packages.
These are the three ways of "installing" a Python module. Read about the site module for more information.