added music blueprint
This commit is contained in:
parent
5cab7f9740
commit
7d8b2ebf03
1
sarsoo/music/__init__.py
Normal file
1
sarsoo/music/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from .music import music_print
|
13
sarsoo/music/music.py
Normal file
13
sarsoo/music/music.py
Normal file
@ -0,0 +1,13 @@
|
||||
from flask import Blueprint, render_template, abort
|
||||
from jinja2 import TemplateNotFound
|
||||
|
||||
from google.cloud import firestore
|
||||
|
||||
urlprefix = 'music'
|
||||
|
||||
music_print = Blueprint('music', __name__, template_folder='templates')
|
||||
|
||||
|
||||
@music_print.route('/')
|
||||
def root():
|
||||
return render_template('music/index.html')
|
3
sarsoo/music/templates/music/index.html
Normal file
3
sarsoo/music/templates/music/index.html
Normal file
@ -0,0 +1,3 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}music{% endblock %}
|
Loading…
Reference in New Issue
Block a user