Django

Code

Show
Ignore:
Timestamp:
08/30/08 00:09:03 (3 months ago)
Author:
mtredinnick
Message:

Removed the need for ROOT_URLCONF in settings when running Django's core tests
(via runtests.py). It was embarrassing having to explain the need for it to
people, since we ignore whatever setting is passed in.

Files:

Legend:

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

    r7576 r8731  
    9191    old_installed_apps = settings.INSTALLED_APPS 
    9292    old_test_database_name = settings.TEST_DATABASE_NAME 
    93     old_root_urlconf = settings.ROOT_URLCONF 
     93    old_root_urlconf = getattr(settings, "ROOT_URLCONF", "") 
    9494    old_template_dirs = settings.TEMPLATE_DIRS 
    9595    old_use_i18n = settings.USE_I18N