Author: jacob
Date: 2007-02-26 16:34:56 -0600 (Mon, 26 Feb 2007)
New Revision: 4628

Modified:
   django/trunk/tests/runtests.py
Log:
Fixed #2490: Added a polite note to runtests.py about setting 
DJANGO_SETTINGS_MODULE or --settings.

Modified: django/trunk/tests/runtests.py
===================================================================
--- django/trunk/tests/runtests.py      2007-02-26 22:19:03 UTC (rev 4627)
+++ django/trunk/tests/runtests.py      2007-02-26 22:34:56 UTC (rev 4628)
@@ -148,5 +148,7 @@
     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)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to