From 8cef34c83fd2c013e0671ece54bfe43a3c4bb510 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Mon, 8 Nov 2021 08:24:19 +0300 Subject: Fix runtime errors * wqflask/wqflask/__init__.py: when registering a URL, the url_prefix should begin with a trailing slash. * wqflask/wqflask/jupyter_notebooks.py: fix imports. --- wqflask/wqflask/__init__.py | 2 +- wqflask/wqflask/jupyter_notebooks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wqflask/wqflask/__init__.py b/wqflask/wqflask/__init__.py index 9223ec5d..fbf1c9f5 100644 --- a/wqflask/wqflask/__init__.py +++ b/wqflask/wqflask/__init__.py @@ -62,7 +62,7 @@ app.register_blueprint(environments_blueprint, url_prefix="/environments") app.register_blueprint(facilities_blueprint, url_prefix="/facilities") app.register_blueprint(blogs_blueprint, url_prefix="/blogs") app.register_blueprint(news_blueprint, url_prefix="/news") -app.register_blueprint(jupyter_notebooks, url_prefix="jupyter_notebooks") +app.register_blueprint(jupyter_notebooks, url_prefix="/jupyter_notebooks") app.register_blueprint(resource_management, url_prefix="/resource-management") diff --git a/wqflask/wqflask/jupyter_notebooks.py b/wqflask/wqflask/jupyter_notebooks.py index 348b252d..dbea04dd 100644 --- a/wqflask/wqflask/jupyter_notebooks.py +++ b/wqflask/wqflask/jupyter_notebooks.py @@ -1,4 +1,4 @@ -from Flask import BluePrint, render_template +from flask import Blueprint, render_template jupyter_notebooks = Blueprint('jupyter_notebooks', __name__) -- cgit v1.2.3