Skip to content
Snippets Groups Projects
Commit 22bbcfd2 authored by Arno Wunderlich's avatar Arno Wunderlich
Browse files

fixed blueprint issues

parent b94f23e4
No related branches found
No related tags found
Loading
......@@ -51,6 +51,10 @@ def create_app(config: Optional[Dict] = None) -> Flask:
# Initialize the database connection.
init_db(flask_app)
# Register blueprints
from . import views # pylint: disable=import-outside-toplevel
flask_app.register_blueprint(views.bp, url_prefix='')
# a simple page that says hello
@flask_app.route('/hello')
def hello():
......
......@@ -29,7 +29,6 @@ def test_item_adding():
Test item is added
"""
from .models import Item, User
# Create a new user
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment