You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
587 B
26 lines
587 B
#!/usr/bin/env python3
|
|
#appsettings.py
|
|
|
|
import functools
|
|
import os
|
|
import pprint
|
|
import configparser
|
|
import flask
|
|
import appdb
|
|
import google_auth
|
|
|
|
config = configparser.ConfigParser()
|
|
config.read('config.ini')
|
|
app_debug = config.get("app","debug")
|
|
|
|
app = flask.Blueprint('app_settings', __name__)
|
|
if app_debug == '1':
|
|
app.debug = True
|
|
else:
|
|
app.debug = False
|
|
|
|
@app.route('/settings')
|
|
def appsettings():
|
|
if not google_auth.is_logged_in():
|
|
return flask.render_template('deny.html', denymsg = 'You are not authorized to be here')
|
|
return 'Success you found settings!' |