comments and pygments fix

This commit is contained in:
2021-11-28 20:56:25 +00:00
parent d6130a311f
commit 993d8ec69b
2 changed files with 11 additions and 10 deletions

View File

@@ -3,6 +3,7 @@ import os
from flask import Flask
from flaskpages import pages
import logging
from flask_flatpages import pygments_style_defs
def create_app(test_config=None):
"""Create and configure an instance of the Flask application."""
app = Flask(__name__, instance_relative_config=True)
@@ -24,6 +25,7 @@ def create_app(test_config=None):
os.makedirs(app.instance_path)
except OSError:
pass
if app.config["DEBUG"]:
app.logger.setLevel(logging.DEBUG)
@app.route("/hello")