Author: jbronn Date: 2009-04-10 14:19:19 -0500 (Fri, 10 Apr 2009) New Revision: 10498
Modified: django/trunk/django/contrib/gis/tests/__init__.py Log: No longer create tables for unnecessary applications when running the GeoDjango test suite. Modified: django/trunk/django/contrib/gis/tests/__init__.py =================================================================== --- django/trunk/django/contrib/gis/tests/__init__.py 2009-04-10 18:58:32 UTC (rev 10497) +++ django/trunk/django/contrib/gis/tests/__init__.py 2009-04-10 19:19:19 UTC (rev 10498) @@ -72,19 +72,11 @@ old_installed = settings.INSTALLED_APPS old_root_urlconf = settings.ROOT_URLCONF - # Based on ALWAYS_INSTALLED_APPS from django test suite -- - # this prevents us from creating tables in our test database - # from locally installed apps. - new_installed = ['django.contrib.contenttypes', - 'django.contrib.auth', - 'django.contrib.sites', + # Overridding the INSTALLED_APPS with only what we need, + # to prevent unnecessary database table creation. + new_installed = ['django.contrib.sites', 'django.contrib.sitemaps', - 'django.contrib.flatpages', 'django.contrib.gis', - 'django.contrib.redirects', - 'django.contrib.sessions', - 'django.contrib.comments', - 'django.contrib.admin', ] # Setting the URLs. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---