Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 516aa4436c7e51ba6b6d28893a29a1310eafed36 1 parent b581d73
Jacob Kaplan-Moss authored February 26, 2007

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  tests/runtests.py
4  tests/runtests.py
@@ -148,5 +148,7 @@ def django_tests(verbosity, tests_to_run):
148 148
     options, args = parser.parse_args()
149 149
     if options.settings:
150 150
         os.environ['DJANGO_SETTINGS_MODULE'] = options.settings
151  
-
  151
+    elif "DJANGO_SETTINGS_MODULE" not in os.environ:
  152
+        parser.error("DJANGO_SETTINGS_MODULE is not set in the environment. "
  153
+                      "Set it or use --settings.")
152 154
     django_tests(int(options.verbosity), args)

0 notes on commit 516aa44

Please sign in to comment.
Something went wrong with that request. Please try again.