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 22254 Testing documentation doesn't make it clear that django.setup() needs to be called with setup_test_environment peter.landry@… Tim Graham "https://docs.djangoproject.com/en/dev/topics/testing/advanced/#running-tests-outside-the-test-runner It's not specific to testing, but it seems that we should mention the necessity of calling `django.setup()` in the directions for running tests outside of `manage.py`. I've submitted a pull request with a simple documentation change: https://github.com/django/django/pull/2419 This may require some more discussion, though. As mjtamlyn points out, another solution could be to include `django.setup()` in `setup_test_environment()`. The call to `django.setup()` could also be moved into the example for using `setup_test_environment()` rather than a warning in its own." Cleanup/optimization closed Documentation 1.7-alpha-2 Normal fixed app-loading Unreviewed 0 0 0 0 0 0