fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6d42bc4
)
Migrate from raven to sentry-sdk.
author
Radek Czajka
<rczajka@rczajka.pl>
Tue, 6 Aug 2019 12:10:20 +0000
(14:10 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Tue, 6 Aug 2019 12:10:20 +0000
(14:10 +0200)
requirements/requirements.txt
patch
|
blob
|
history
src/funding/forms.py
patch
|
blob
|
history
src/wolnelektury/settings/__init__.py
patch
|
blob
|
history
src/wolnelektury/settings/apps.py
patch
|
blob
|
history
src/wolnelektury/settings/contrib.py
patch
|
blob
|
history
diff --git
a/requirements/requirements.txt
b/requirements/requirements.txt
index
2911a9a
..
5081a1d
100644
(file)
--- a/
requirements/requirements.txt
+++ b/
requirements/requirements.txt
@@
-58,7
+58,7
@@
deprecated
httplib2
httplib2
-raven
+sentry-sdk==0.10.2
mailchimp3
mailchimp3
diff --git
a/src/funding/forms.py
b/src/funding/forms.py
index
915e2aa
..
c3661d5
100644
(file)
--- a/
src/funding/forms.py
+++ b/
src/funding/forms.py
@@
-58,5
+58,5
@@
adres e-mail zostanie wykorzystany także w celu przesyłania newslettera Wolnyc
amount=self.cleaned_data['amount'],
language_code=get_language(),
)
amount=self.cleaned_data['amount'],
language_code=get_language(),
)
- funding.perks
= funding.offer.get_perks(funding.amount
)
+ funding.perks
.set(funding.offer.get_perks(funding.amount)
)
return funding
return funding
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()]
+ )
diff --git
a/src/wolnelektury/settings/apps.py
b/src/wolnelektury/settings/apps.py
index
76ffa6f
..
241b4b7
100644
(file)
--- a/
src/wolnelektury/settings/apps.py
+++ b/
src/wolnelektury/settings/apps.py
@@
-58,7
+58,6
@@
INSTALLED_APPS_CONTRIB = [
'getpaid',
'getpaid.backends.payu',
'django_extensions',
'getpaid',
'getpaid.backends.payu',
'django_extensions',
- 'raven.contrib.django.raven_compat',
'club.apps.ClubConfig',
'debug_toolbar',
'club.apps.ClubConfig',
'debug_toolbar',
diff --git
a/src/wolnelektury/settings/contrib.py
b/src/wolnelektury/settings/contrib.py
index
528688b
..
66c8762
100644
(file)
--- a/
src/wolnelektury/settings/contrib.py
+++ b/
src/wolnelektury/settings/contrib.py
@@
-1,8
+1,6
@@
# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
-from django.utils.translation import ugettext_lazy as _
-
HONEYPOT_FIELD_NAME = 'miut'
PAGINATION_INVALID_PAGE_RAISES_404 = True
THUMBNAIL_QUALITY = 95
HONEYPOT_FIELD_NAME = 'miut'
PAGINATION_INVALID_PAGE_RAISES_404 = True
THUMBNAIL_QUALITY = 95