<!DOCTYPE html>
<html>
<head>
-
+ {% if RAVEN_CONFIG %}
+ <script src="http://cdn.ravenjs.com/1.1.3/jquery,native/raven.min.js"></script>
+ <script>
+ Raven.config('{{RAVEN_CONFIG.SENTRY_URL}}', {{RAVEN_CONFIG.SETTINGS|default:'{}'}}).install();
+ </script>
+ {% endif %}
<script src="{% url 'django.views.i18n.javascript_catalog' %}"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/ace/1.1.01/ace.js" type="text/javascript" charset="utf-8"></script>
var config = {
rootSelector: '#editor_root',
jsonifySentPayload: false,
+
+ logging: {
+ handlers: {
+ 'sentry': {
+ level: 'info',
+ handler: 'raven'
+ }
+ },
+ loggers: {
+ '': {
+ level: 'info',
+ handlers: ['sentry']
+ }
+ }
+ },
documentSaveUrl: function(id) { return '/editor/text/' + id + '/'; },
documentHistoryUrl: function(id) { return '/editor/history/' + id + '/'},
'MEDIA_URL': settings.MEDIA_URL,
'STATIC_URL': settings.STATIC_URL,
'DEBUG': settings.DEBUG,
+ 'RAVEN_CONFIG': getattr(settings, 'RAVEN_CONFIG'),
'APP_VERSION': VERSION,
}