|
|
@@ -18,7 +18,6 @@ Features:
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
from flask import Flask, render_template, request, redirect, url_for, session, flash, send_from_directory, get_flashed_messages, jsonify, Response, make_response, send_file, abort
|
|
|
|
from flask import Flask, render_template, request, redirect, url_for, session, flash, send_from_directory, get_flashed_messages, jsonify, Response, make_response, send_file, abort
|
|
|
|
from flask_wtf.csrf import CSRFProtect
|
|
|
|
|
|
|
|
from werkzeug.utils import secure_filename
|
|
|
|
from werkzeug.utils import secure_filename
|
|
|
|
from werkzeug.middleware.proxy_fix import ProxyFix
|
|
|
|
from werkzeug.middleware.proxy_fix import ProxyFix
|
|
|
|
from werkzeug.exceptions import HTTPException
|
|
|
|
from werkzeug.exceptions import HTTPException
|
|
|
@@ -116,7 +115,6 @@ app.config['PREFERRED_URL_SCHEME'] = 'https' if app.config['SESSION_COOKIE_SECUR
|
|
|
|
# app.config['QR_CODE_FOLDER'] = cfg.QR_CODE_FOLDER # QR Code storage deactivated
|
|
|
|
# app.config['QR_CODE_FOLDER'] = cfg.QR_CODE_FOLDER # QR Code storage deactivated
|
|
|
|
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_port=1)
|
|
|
|
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_port=1)
|
|
|
|
app.register_blueprint(terminplaner_bp, url_prefix='/terminplaner')
|
|
|
|
app.register_blueprint(terminplaner_bp, url_prefix='/terminplaner')
|
|
|
|
csrf = CSRFProtect(app)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"""--------------------------------------------------------------Path Init-------------------------------------------------------"""
|
|
|
|
"""--------------------------------------------------------------Path Init-------------------------------------------------------"""
|
|
|
|
|
|
|
|
|
|
|
|