Fix MEDIA_* settings, add Sentry err reports
This commit is contained in:
parent
52090ec25a
commit
28f20dd55a
@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/1.11/ref/settings/
|
||||
"""
|
||||
|
||||
import os
|
||||
import raven
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||
@ -58,6 +59,7 @@ INSTALLED_APPS = [
|
||||
'envelope',
|
||||
'leaflet',
|
||||
'moderation',
|
||||
'raven.contrib.django.raven_compat',
|
||||
'rest_framework',
|
||||
'rest_framework_gis',
|
||||
]
|
||||
@ -181,6 +183,9 @@ STATICFILES_FINDERS = [
|
||||
|
||||
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
|
||||
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
|
||||
MEDIA_URL = os.getenv("MEDIA_URL", '/media/')
|
||||
|
||||
# Cache
|
||||
# https://docs.djangoproject.com/en/1.11/topics/cache/
|
||||
|
||||
@ -234,4 +239,12 @@ LEAFLET_CONFIG = {
|
||||
|
||||
# Moderation
|
||||
# https://django-moderation.readthedocs.io/
|
||||
MODERATION_MODERATORS = ('livvy@base.nu')
|
||||
MODERATION_MODERATORS = ('livvy@base.nu',)
|
||||
|
||||
# Sentry - Error Reporting
|
||||
RAVEN_CONFIG = {
|
||||
'dsn': 'https://296dda892e6e4838835a2330dd621569:10943d15104244d683fe5ccc0c898386@sentry.io/227480',
|
||||
# If you are using git, you can also automatically configure the
|
||||
# release based on the git info.
|
||||
'release': raven.fetch_git_sha(os.path.dirname(os.pardir)),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user