Enable templates and static files in the utils module. Refactor to

ease use as a template for other modules in the future.
This commit is contained in:
Dave Page 2015-01-20 13:57:51 +00:00
parent 5cffcabc70
commit 47e779266b

View File

@ -9,12 +9,14 @@
#
##########################################################################
MODULE_NAME = 'utils'
import config
from flask import Blueprint
from flask import Blueprint, render_template
from time import time, ctime
# Initialise the module
blueprint = Blueprint('utils', __name__)
blueprint = Blueprint(MODULE_NAME, __name__, static_folder='static', static_url_path='', template_folder='templates', url_prefix='/' + MODULE_NAME)
##########################################################################
# A test page