﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29003	"Errror in ""Contributing > Writing Code > Unit tests > Quick start"""	Дилян Палаузов	nobody	"https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/ says

  Quickstart
  {{{
$ git clone git@github.com:YourGitHubName/django.git django-repo
$ cd django-repo/tests
$ pip install -e ..
$ pip install -r requirements/py3.txt
$ ./runtests.py
   }}}

which does not work, when Django is not installed (in the virtual environment).  Once we are in the tests directory (or call `tests/runtests.py`) `os.sys.path` does not contain the parent directory, so this happens:

{{{
Traceback (most recent call last):
  File ""./runtests.py"", line 14, in <module>
    import django
ImportError: No module named 'django'
}}}

Setting `$PYTHONPATH` explicitly to the parent directory helps."	Bug	closed	Documentation	dev	Normal	invalid			Unreviewed	0	0	0	0	0	0
