#12102: Relative PYTHONPATH in the docs
---------------------------+------------------------------------------------
Reporter: alexkon | Owner: jacob
Status: new | Milestone: 1.2
Component: Documentation | Version: 1.1
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
In at least [
http://docs.djangoproject.com/en/dev/internals/contributing
/#running-the-unit-tests one place] in the documentation you explicitly
recommend setting the `PYTHONPATH` environment variable to a relative
path:
{{{
PYTHONPATH=..
./runtests.py --settings=settings generic_relations i18n
}}}
There is an obvious security risk associated with relative paths.
Suggestions:
1. Change the above line to something like {{{PYTHONPATH=`pwd`/..}}}
2. Add a warning everywhere in the docs where you mention setting the
`PYTHONPATH` variable that for security reasons it must contain absolute
paths only.
--
Ticket URL: <
http://code.djangoproject.com/ticket/12102>
Django <
http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.