Author: mtredinnick
Date: 2007-08-15 06:29:58 -0500 (Wed, 15 Aug 2007)
New Revision: 5893

Modified:
   django/trunk/tests/runtests.py
Log:
If SITE_ID isn't in the test settings, fake it. We need the sites framework, 
but the value of SITE_ID is currently unimportant, so we can transparently fix 
this error.


Modified: django/trunk/tests/runtests.py
===================================================================
--- django/trunk/tests/runtests.py      2007-08-15 11:25:22 UTC (rev 5892)
+++ django/trunk/tests/runtests.py      2007-08-15 11:29:58 UTC (rev 5893)
@@ -94,6 +94,8 @@
         'django.contrib.auth.middleware.AuthenticationMiddleware',
         'django.middleware.common.CommonMiddleware',
     )
+    if not hasattr(settings, 'SITE_ID'):
+        settings.SITE_ID = 1
 
     # Load all the ALWAYS_INSTALLED_APPS.
     # (This import statement is intentionally delayed until after we


--~--~---------~--~----~------------~-------~--~----~
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