fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes
[wolnelektury.git]
/
src
/
wolnelektury
/
settings
/
__init__.py
diff --git
a/src/wolnelektury/settings/__init__.py
b/src/wolnelektury/settings/__init__.py
index
4cab2b1
..
8e0815b
100644
(file)
--- a/
src/wolnelektury/settings/__init__.py
+++ b/
src/wolnelektury/settings/__init__.py
@@
-2,6
+2,9
@@
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
# Django settings for wolnelektury project.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
# Django settings for wolnelektury project.
+import sentry_sdk
+from sentry_sdk.integrations.django import DjangoIntegration
+
from .apps import *
from .basic import *
from .auth import *
from .apps import *
from .basic import *
from .auth import *
@@
-18,3
+21,14
@@
try:
from wolnelektury.localsettings import *
except ImportError:
pass
from wolnelektury.localsettings import *
except ImportError:
pass
+
+
+try:
+ SENTRY_DSN
+except NameError:
+ pass
+else:
+ sentry_sdk.init(
+ dsn=SENTRY_DSN,
+ integrations=[DjangoIntegration()]
+ )