Django

Code

Changeset 5893

Show
Ignore:
Timestamp:
08/15/07 06:29:58 (11 months ago)
Author:
mtredinnick
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/runtests.py

    r5892 r5893  
    9595        'django.middleware.common.CommonMiddleware', 
    9696    ) 
     97    if not hasattr(settings, 'SITE_ID'): 
     98        settings.SITE_ID = 1 
    9799 
    98100    # Load all the ALWAYS_INSTALLED_APPS.