forked from AGLDWG/gnaf-dataset
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathapp.py
More file actions
22 lines (16 loc) · 691 Bytes
/
app.py
File metadata and controls
22 lines (16 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import logging
import pyldapi
import _config as conf
from flask import Flask
from controller import pages, classes
app = Flask(__name__, template_folder=conf.TEMPLATES_DIR, static_folder=conf.STATIC_DIR)
app.register_blueprint(pages.pages)
app.register_blueprint(classes.classes)
# run the Flask app
if __name__ == '__main__':
logging.basicConfig(filename=conf.LOGFILE,
level=logging.DEBUG,
datefmt='%Y-%m-%d %H:%M:%S',
format='%(asctime)s %(levelname)s %(filename)s:%(lineno)s %(message)s')
pyldapi.setup(app, conf.APP_DIR, conf.URI_BASE)
app.run(debug=conf.DEBUG, threaded=True, use_reloader=False)