{% load sentry_api %}
{% load sentry_dsn %}

<script>
Raven.config('{% public_dsn %}', {
  release: '{{ sentry_version.build }}',
  whitelistUrls: {% convert_to_json ALLOWED_HOSTS %}
}).install();
Raven.setUserContext({% get_user_context request %});
</script>
