Skip to content

Commit

Permalink
Merge pull request #1906 from ccnmtl/sentry-js
Browse files Browse the repository at this point in the history
Add new sentry-js setup
  • Loading branch information
ndittren authored Oct 13, 2024
2 parents 08cdd5b + 2f37996 commit f993d1c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
1 change: 1 addition & 0 deletions polarexplorer/settings_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
'debug_toolbar',
'gunicorn',
'impersonate',
'ctlsettings',
]

PROJECT_APPS = [
Expand Down
32 changes: 17 additions & 15 deletions polarexplorer/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Polar Explorer: {% block title %}{% endblock %}</title>
<meta charset="utf-8" />
<title>Polar Explorer: {% block title %}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="description" content="Polar Explorer">
<meta name="author" content="CCNMTL">


{% include "ctlsettings/sentry_js.html" %}

{% block extrahead %}
{% endblock %}

<!-- Mobile IE allows us to activate ClearType technology for smoothing fonts for easy reading -->
<meta http-equiv="cleartype" content="on">

<!-- For mobile browsers that do not recognize the viewport tag -->
<meta name="MobileOptimized" content="320" />

<link rel="stylesheet" href="{{STATIC_URL}}jquery.mobile/jquery.mobile-1.3.2.min.css" media="screen" />

{% block css %}
<link href="{{STATIC_URL}}css/main.css" rel="stylesheet">
<link href="{{STATIC_URL}}css/main.css" rel="stylesheet">
{% endblock %}

<link rel="shortcut icon" href="{{STATIC_URL}}img/favicon.ico" type="image/x-icon" />

<link rel="stylesheet" href="https://search.sites.columbia.edu/cu-privacy-notice/cu-privacy-notice.css" />
Expand All @@ -43,23 +45,23 @@
<body style="display: none">
{% block content %}
{% endblock %}

<div id="about" data-role="dialog" data-url="about">
<div data-role="header">
<h1>About</h1>
</div>
</div>
<div class="about-content" data-role="content">
<h4 style="text-align: center">{% block about_title %}{% endblock %}</h4>
{% block about_content %}
@todo Credits & Instructions
{% endblock %}
{% endblock %}
</div>
</div>

<script src="{{STATIC_URL}}js/jquery-1.8.3.min.js"></script>
<script src="{{STATIC_URL}}jquery.mobile/jquery.mobile-1.3.2.min.js"></script>
<script src="{{STATIC_URL}}js/vslider.js"></script>

{% block extrajs %}
{% endblock %}

Expand All @@ -70,7 +72,7 @@ <h4 style="text-align: center">{% block about_title %}{% endblock %}</h4>
<script type="text/javascript" src="{{STATIC_URL}}js/interactive.js"></script>

{% block js %}{% endblock %}

{% if STAGING_ENV %}
<div class="alert alert-error" style="position: fixed; bottom: 0px;">
<h4>Warning: Staging Site</h4>
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ django-templatetag-sugar==1.0
django-paging==0.2.5
django-appconf==1.0.5
django-statsd-mozilla==0.4.0
raven==6.10.0
sentry-sdk==2.16.0
django-bootstrap-form==3.4
django-debug-toolbar==4.4.6
Expand All @@ -84,7 +83,7 @@ django-smtp-ssl==1.0
cffi==1.17.0 # cryptography
cryptography==43.0.1 # pyOpenSSL

ctlsettings==0.3.4
ctlsettings==0.4.1

pbr==6.1.0
PyYAML==6.0.1 # MIT
Expand Down

0 comments on commit f993d1c

Please sign in to comment.