Skip to content

Commit

Permalink
Add /favicon.ico
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmwatson committed Aug 7, 2024
1 parent 7650a83 commit 25a99d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Binary file added pmg/static/favicon.ico
Binary file not shown.
7 changes: 6 additions & 1 deletion pmg/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from builtins import range
import logging
from datetime import datetime, date, timedelta
Expand All @@ -19,6 +20,7 @@
redirect,
Response,
jsonify,
send_from_directory
)
from flask_security import current_user
from flask_mail import Message
Expand Down Expand Up @@ -2005,7 +2007,10 @@ def pr6():
def pr6_articles(section,slug):
return render_template("pr6/article.html",section=section, article=slug)


@app.route('/favicon.ico')
def favicon():
return send_from_directory(os.path.join(app.root_path, 'static'),
'favicon.ico', mimetype='image/vnd.microsoft.icon')

# Test to make sure sentry is working
@app.route("/debug-sentry")
Expand Down

0 comments on commit 25a99d6

Please sign in to comment.