mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-24 17:50:20 -06:00
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:
parent
5cffcabc70
commit
47e779266b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user