comments and pygments fix
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user