|
|
|
|
@ -11,10 +11,13 @@ https://docs.djangoproject.com/en/2.0/ref/settings/ |
|
|
|
|
""" |
|
|
|
|
|
|
|
|
|
import os |
|
|
|
|
import raven |
|
|
|
|
|
|
|
|
|
from celery.schedules import crontab |
|
|
|
|
from collections import OrderedDict |
|
|
|
|
from datetime import timedelta |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) |
|
|
|
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
|
|
|
|
|
|
|
|
|
@ -53,6 +56,7 @@ INSTALLED_APPS = [ |
|
|
|
|
'constance', |
|
|
|
|
'constance.backends.database', |
|
|
|
|
'sorl.thumbnail', |
|
|
|
|
'raven.contrib.django.raven_compat', |
|
|
|
|
] + [ |
|
|
|
|
'apps.auth.apps', |
|
|
|
|
'apps.user', |
|
|
|
|
@ -290,3 +294,11 @@ if DEBUG: |
|
|
|
|
SWAGGER_SETTINGS = { |
|
|
|
|
'DOC_EXPANSION': 'none', |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# Raven settings |
|
|
|
|
RAVEN_CONFIG = { |
|
|
|
|
'dsn': 'https://bff536c4d71c4166afb91f83b9f73d55:ca47ad791a53480b9d40a85a26abf141@sentry.io/306843', |
|
|
|
|
# If you are using git, you can also automatically configure the |
|
|
|
|
# release based on the git info. |
|
|
|
|
'release': raven.fetch_git_sha(BASE_DIR), |
|
|
|
|
} |
|
|
|
|
|