Fixes for fix a warning about registering blueprints

This commit is contained in:
Antonio de la Rosa 2021-06-28 14:49:01 +02:00
parent 8c2bcdc74a
commit dfbdc7109f
4 changed files with 25 additions and 13 deletions

View file

@ -0,0 +1,4 @@
from flask import Blueprint, redirect
welcome_app=Blueprint('welcome_app', __name__)

View file

@ -1,13 +1,12 @@
from flask import Blueprint, redirect
from settings import config
from paramecio2.libraries.mtemplates import PTemplate, env_theme
from paramecio2.modules.welcome import welcome_app
env=env_theme(__file__)
t=PTemplate(env)
welcome_app=Blueprint('welcome_app', __name__)
@welcome_app.route('/welcome')
def home():