Author: mtredinnick
Date: 2008-08-30 00:09:03 -0500 (Sat, 30 Aug 2008)
New Revision: 8731
Modified:
django/trunk/docs/internals/contributing.txt
django/trunk/tests/runtests.py
Log:
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.
Modified: django/trunk/docs/internals/contributing.txt
===================================================================
--- django/trunk/docs/internals/contributing.txt 2008-08-30 04:52:56 UTC
(rev 8730)
+++ django/trunk/docs/internals/contributing.txt 2008-08-30 05:09:03 UTC
(rev 8731)
@@ -730,8 +730,7 @@
./runtests.py --settings=path.to.django.settings
Yes, the unit tests need a settings module, but only for database connection
-info, with the ``DATABASE_ENGINE`` setting. You'll also need a ``ROOT_URLCONF``
-setting (its value is ignored; it just needs to be present).
+info, with the ``DATABASE_ENGINE`` setting.
If you're using the ``sqlite3`` database backend, no further settings are
needed. A temporary database will be created in memory when running the tests.
Modified: django/trunk/tests/runtests.py
===================================================================
--- django/trunk/tests/runtests.py 2008-08-30 04:52:56 UTC (rev 8730)
+++ django/trunk/tests/runtests.py 2008-08-30 05:09:03 UTC (rev 8731)
@@ -90,7 +90,7 @@
old_installed_apps = settings.INSTALLED_APPS
old_test_database_name = settings.TEST_DATABASE_NAME
- old_root_urlconf = settings.ROOT_URLCONF
+ old_root_urlconf = getattr(settings, "ROOT_URLCONF", "")
old_template_dirs = settings.TEMPLATE_DIRS
old_use_i18n = settings.USE_I18N
old_login_url = settings.LOGIN_URL
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---