diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2007-02-26 22:34:56 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2007-02-26 22:34:56 +0000 |
| commit | 516aa4436c7e51ba6b6d28893a29a1310eafed36 (patch) | |
| tree | 12d8afa487cf10c43a721828266dddd48d773bd9 | |
| parent | b581d732227c9d347c4046a66879d8c4c9c6cec5 (diff) | |
Fixed #2490: Added a polite note to runtests.py about setting DJANGO_SETTINGS_MODULE or --settings.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4628 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rwxr-xr-x | tests/runtests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index b21a3536ac..a111ef1436 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -148,5 +148,7 @@ if __name__ == "__main__": options, args = parser.parse_args() if options.settings: os.environ['DJANGO_SETTINGS_MODULE'] = options.settings - + elif "DJANGO_SETTINGS_MODULE" not in os.environ: + parser.error("DJANGO_SETTINGS_MODULE is not set in the environment. " + "Set it or use --settings.") django_tests(int(options.verbosity), args) |
