mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
15 lines
311 B
Python
15 lines
311 B
Python
from config import config
|
|
from flask import Flask, render_template
|
|
|
|
|
|
def create_app(config_name):
|
|
app = Flask(__name__)
|
|
app.config.from_object(config[config_name])
|
|
config[config_name].init_app(app)
|
|
|
|
@app.route('/')
|
|
def index():
|
|
return render_template('base.html.j2')
|
|
|
|
return app
|