From 7d8b2ebf03676593afad4b4172ebfdaa3fd544f0 Mon Sep 17 00:00:00 2001 From: aj Date: Sat, 2 Mar 2019 12:41:05 +0000 Subject: [PATCH] added music blueprint --- sarsoo/music/__init__.py | 1 + sarsoo/music/music.py | 13 +++++++++++++ sarsoo/music/templates/music/index.html | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 sarsoo/music/__init__.py create mode 100644 sarsoo/music/music.py create mode 100644 sarsoo/music/templates/music/index.html diff --git a/sarsoo/music/__init__.py b/sarsoo/music/__init__.py new file mode 100644 index 0000000..0ec35b2 --- /dev/null +++ b/sarsoo/music/__init__.py @@ -0,0 +1 @@ +from .music import music_print diff --git a/sarsoo/music/music.py b/sarsoo/music/music.py new file mode 100644 index 0000000..fe980d0 --- /dev/null +++ b/sarsoo/music/music.py @@ -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') diff --git a/sarsoo/music/templates/music/index.html b/sarsoo/music/templates/music/index.html new file mode 100644 index 0000000..b977796 --- /dev/null +++ b/sarsoo/music/templates/music/index.html @@ -0,0 +1,3 @@ +{% extends 'base.html' %} + +{% block title %}music{% endblock %}