generic slug

master
km0 3 years ago
parent ba878da9cb
commit d753e49e83

BIN
.DS_Store vendored

Binary file not shown.

BIN
si17/.DS_Store vendored

Binary file not shown.

@ -37,6 +37,8 @@ def create_app(test_config=None):
from . import home from . import home
app.register_blueprint(home.bp) app.register_blueprint(home.bp)
# from . import karaoke
# app.register_blueprint(karaoke.bp)

@ -7,3 +7,7 @@ bp = Blueprint("home", __name__, url_prefix="/")
@bp.route("/") @bp.route("/")
def home(): def home():
return render_template("home.html") return render_template("home.html")
@bp.route("/<slug>/")
def page(slug=None):
return slug

@ -0,0 +1,12 @@
from flask import Blueprint, render_template, redirect, url_for
bp = Blueprint("karaoke", __name__, url_prefix="/🎤")
@bp.route("/")
def home():
print('Karaoke page')
# return redirect(url_for('home.home'))
return 'Karaoke page'

Binary file not shown.
Loading…
Cancel
Save