Browse Source

Add django-test-extensions to INSTALLED_APPS if it's available.

Ask Solem 16 years ago
parent
commit
c0efc4a502
1 changed files with 8 additions and 0 deletions
  1. 8 0
      testproj/settings.py

+ 8 - 0
testproj/settings.py

@@ -93,6 +93,7 @@ TEMPLATE_DIRS = (
     # Don't forget to use absolute paths, not relative paths.
 )
 
+
 INSTALLED_APPS = (
     'django.contrib.auth',
     'django.contrib.contenttypes',
@@ -100,3 +101,10 @@ INSTALLED_APPS = (
     'django.contrib.sites',
     'celery'
 )
+
+try:
+    import test_extensions
+except ImportError:
+    pass
+else:
+    INSTALLED_APPS += ("test_extensions", )