diff --git a/caluma/settings/django.py b/caluma/settings/django.py index 1037a3ef1..76c6facc0 100644 --- a/caluma/settings/django.py +++ b/caluma/settings/django.py @@ -33,7 +33,14 @@ ] if DEBUG: - INSTALLED_APPS.append("django_extensions") + try: + __import__("django_extensions") + INSTALLED_APPS.append("django_extensions") + except ImportError: # pragma: no cover + # Nothing bad, just won't have django-extensions + # niceties installed (Most likely Caluma was built) + # without dev dependencies + pass MIDDLEWARE = [ "django.middleware.security.SecurityMiddleware",