Skip to content

Commit

Permalink
Fixed #5979 -- Always use SITE_ID=1 when running Django's core tests.…
Browse files Browse the repository at this point in the history
… This

makes things much easier. Thanks, George Vilches.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6814 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Dec 1, 2007
1 parent a72324b commit b3db188
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/runtests.py
Expand Up @@ -107,8 +107,7 @@ def django_tests(verbosity, interactive, test_labels):
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.common.CommonMiddleware',
)
if not hasattr(settings, 'SITE_ID'):
settings.SITE_ID = 1
settings.SITE_ID = 1

# Load all the ALWAYS_INSTALLED_APPS.
# (This import statement is intentionally delayed until after we
Expand Down

0 comments on commit b3db188

Please sign in to comment.