diff --git a/example2/example2/settings.py b/example2/example2/settings.py index aff938c..bda779b 100644 --- a/example2/example2/settings.py +++ b/example2/example2/settings.py @@ -122,9 +122,16 @@ INSTALLED_APPS = ( 'rest_framework', 'djadmin2', 'polls', - 'django_extensions', ) +try: + import django_extensions + INSTALLED_APPS += ( + 'django_extensions', + ) +except ImportError: + pass + # A sample logging configuration. The only tangible logging # performed by this configuration is to send an email to # the site admins on every HTTP 500 error when DEBUG=False.