upgrade aldryn-django 1.11.20.1 to 1.11.21.1
This commit is contained in:
@@ -365,16 +365,16 @@ class Form(forms.BaseForm):
|
||||
sentry_dsn = env('SENTRY_DSN')
|
||||
|
||||
if sentry_dsn:
|
||||
settings['INSTALLED_APPS'].append('raven.contrib.django')
|
||||
settings['RAVEN_CONFIG'] = {
|
||||
'dsn': sentry_dsn,
|
||||
'release': env('GIT_COMMIT', 'develop'),
|
||||
'environment': env('STAGE', 'local'),
|
||||
}
|
||||
settings['LOGGING']['handlers']['sentry'] = {
|
||||
'level': 'ERROR',
|
||||
'class': 'raven.contrib.django.raven_compat.handlers.SentryHandler',
|
||||
}
|
||||
import sentry_sdk
|
||||
from sentry_sdk.integrations.django import DjangoIntegration
|
||||
|
||||
sentry_sdk.init(
|
||||
dsn=sentry_dsn,
|
||||
integrations=[DjangoIntegration()],
|
||||
debug=settings['DEBUG'],
|
||||
release=env('GIT_COMMIT', 'develop'),
|
||||
environment=env('STAGE', 'local'),
|
||||
)
|
||||
|
||||
def storage_settings_for_media(self, settings, env):
|
||||
import yurl
|
||||
|
||||
Reference in New Issue
Block a user