Commit f7be284b authored by Sli's avatar Sli

Merge branch 'sentry' into 'master'

Support de sentry pour récupérer les erreurs utilisateur

See merge request !161
parents 3ae0c3f3 b2d44e83
Pipeline #1550 passed with stage
in 8 minutes
...@@ -17,6 +17,10 @@ To start working on the project, just run the following commands: ...@@ -17,6 +17,10 @@ To start working on the project, just run the following commands:
To start the simple development server, just run `python3 manage.py runserver` To start the simple development server, just run `python3 manage.py runserver`
### Logging errors with sentry
To connect the app to sentry.io, you must set the variable SENTRY_DSN in your settings custom. It's composed of the full link given on your sentry project
### Generating documentation ### Generating documentation
There is a Doxyfile at the root of the project, meaning that if you have Doxygen, you can run `doxygen Doxyfile` to There is a Doxyfile at the root of the project, meaning that if you have Doxygen, you can run `doxygen Doxyfile` to
......
...@@ -17,4 +17,5 @@ django-ordered-model ...@@ -17,4 +17,5 @@ django-ordered-model
django-simple-captcha django-simple-captcha
python-dateutil python-dateutil
pygraphviz pygraphviz
sentry_sdk
# mysqlclient # mysqlclient
...@@ -39,6 +39,8 @@ https://docs.djangoproject.com/en/1.8/ref/settings/ ...@@ -39,6 +39,8 @@ https://docs.djangoproject.com/en/1.8/ref/settings/
import os import os
import sys import sys
import binascii import binascii
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
...@@ -553,6 +555,8 @@ SITH_MAILING_FETCH_KEY = "IloveMails" ...@@ -553,6 +555,8 @@ SITH_MAILING_FETCH_KEY = "IloveMails"
SITH_GIFT_LIST = [("AE Tee-shirt", _("AE tee-shirt"))] SITH_GIFT_LIST = [("AE Tee-shirt", _("AE tee-shirt"))]
SENTRY_DSN = ""
try: try:
from .settings_custom import * from .settings_custom import *
...@@ -583,3 +587,7 @@ if DEBUG: ...@@ -583,3 +587,7 @@ if DEBUG:
if "test" in sys.argv: if "test" in sys.argv:
CAPTCHA_TEST_MODE = True CAPTCHA_TEST_MODE = True
if SENTRY_DSN:
# Connection to sentry
sentry_sdk.init(dsn=SENTRY_DSN, integrations=[DjangoIntegration()])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment