from .apps import *
from .basic import *
from .auth import *
-from .cache import *
from .celery import *
from .contrib import *
from .custom import *
pass
+# If Celery broker not configured, enable always-eager mode.
+try:
+ CELERY_BROKER_URL
+except NameError:
+ CELERY_TASK_ALWAYS_EAGER = True
+
+
try:
SENTRY_DSN
except NameError:
dsn=SENTRY_DSN,
integrations=[DjangoIntegration()]
)
+
+
+# Dummy secret key for development.
+try:
+ SECRET_KEY
+except NameError:
+ if DEBUG:
+ SECRET_KEY = 'not-a-secret-key'