Skip to content
Snippets Groups Projects
Commit 01d21afe authored by erichard's avatar erichard
Browse files

Choix du patern app factory.

parent 0bada5cf
No related branches found
No related tags found
2 merge requests!61Packager labelstower,!60WIP: Implement sqlalchemy
......@@ -8,31 +8,6 @@ class CustomFlask(Flask):
variable_start_string='[[',
variable_end_string=']]',
))
'''
class CustomFlask(Flask):
jinja_options = Flask.jinja_options.copy()
jinja_options.update(dict(
variable_start_string='[[',
variable_end_string=']]',
))
app = CustomFlask(__name__)
app.register_blueprint(sort, url_prefix='/sort')
text_component = {"project_name": "LabelsTower",
"Element_name": "Element(s)",
"Label": "Label(s)"
}
@app.route('/')
@app.route('/browse')
def home():
return render_template('browse.html', txt=text_component)
if __name__ == '__main__':
app.run(host='0.0.0.0', port=80)
'''
def create_app():
text_component = {"project_name": "LabelsTower",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment