diff --git a/pyproger/app.py b/pyproger/app.py index 0dc952f..163ee75 100644 --- a/pyproger/app.py +++ b/pyproger/app.py @@ -184,4 +184,12 @@ def create_app(test_config=None): url = url_for("uploaded_files", filename=f.filename) return upload_success(url=url) + @app.route("/favicon.ico") + def favicon(): + return send_from_directory( + os.path.join(app.root_path, "static"), + "favicon.ico", + mimetype="image/vnd.microsoft.icon", + ) + return app diff --git a/pyproger/templates/blog/base.html b/pyproger/templates/blog/base.html index 9933140..e9d1186 100644 --- a/pyproger/templates/blog/base.html +++ b/pyproger/templates/blog/base.html @@ -7,7 +7,7 @@