diff options
Diffstat (limited to 'wqflask/secure_server.py')
-rw-r--r-- | wqflask/secure_server.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/wqflask/secure_server.py b/wqflask/secure_server.py new file mode 100644 index 00000000..3487f35b --- /dev/null +++ b/wqflask/secure_server.py @@ -0,0 +1,39 @@ +from __future__ import print_function, division, absolute_import + +from wqflask import app + +from flask import Flask, render_template + + +# Setup mail +from flask.ext.mail import Mail +mail = Mail(app) + + +from wqflask.model import * + +# Create a user to test with +##@app.before_first_request +#def create_user(): +# db.create_all() +# user_datastore.create_user(email='matt@example.com', password='notebook') +# db.session.commit() + + +import logging +file_handler = logging.FileHandler(app.config['LOGFILE']) +file_handler.setLevel(logging.DEBUG) +app.logger.addHandler(file_handler) + +import logging_tree +logging_tree.printout() + +#print("app.config is:", app.config) + +if __name__ == '__main__': + #create_user() + app.run(host='0.0.0.0', + port=app.config['SERVER_PORT'], + use_debugger=False, + threaded=True, + use_reloader=True) |