mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
sentry: deal with sentry's js as external resource
This commit is contained in:
parent
bdd8427758
commit
f4122bbc37
3
core/static/core/js/sentry/bundle.min.js
vendored
Normal file
3
core/static/core/js/sentry/bundle.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1,12 +1,16 @@
|
||||
{% extends "core/base.jinja" %}
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
<script src="https://browser.sentry-cdn.com/4.0.6/bundle.min.js" crossorigin="anonymous"></script>
|
||||
{% if settings.EXTERNAL_RES %}
|
||||
<script src="https://browser.sentry-cdn.com/4.0.6/bundle.min.js" crossorigin="anonymous"></script>
|
||||
{% else %}
|
||||
<script src="{{ static('core/js/sentry/bundle.min.js') }}" crossorigin="anonymous"></script>
|
||||
{% endif %}
|
||||
{% endblock head %}
|
||||
|
||||
{% block content %}
|
||||
<h3>{% trans %}500, Server Error{% endtrans %}</h3>
|
||||
{% if request.sentry_dsn %}
|
||||
{% if settings.SENTRY_DSN %}
|
||||
<script>
|
||||
Sentry.init({ dsn: '{{ request.sentry_dsn }}' });
|
||||
Sentry.showReportDialog({ eventId: '{{ request.sentry_last_event_id() }}' })
|
||||
|
@ -72,7 +72,6 @@ def not_found(request):
|
||||
|
||||
|
||||
def internal_servor_error(request):
|
||||
request.sentry_dsn = settings.SENTRY_DSN
|
||||
request.sentry_last_event_id = last_event_id
|
||||
return HttpResponseServerError(render(request, "core/500.jinja"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user