aboutsummaryrefslogtreecommitdiff
path: root/wqflask/secure_server.py
diff options
context:
space:
mode:
authorZachary Sloan2013-06-20 22:20:23 +0000
committerZachary Sloan2013-06-20 22:20:23 +0000
commit4ffee373494170e708678039dca132f1bd729ab1 (patch)
treea9d6054380f5a9d612a4d1d88889f68ea4923a75 /wqflask/secure_server.py
parent939058c4a3b668037974f2876b072c4be008da26 (diff)
parent52ac4b6e1c014801080cbbcad53df868058d2657 (diff)
downloadgenenetwork2-4ffee373494170e708678039dca132f1bd729ab1.tar.gz
Merge branch 'flask'
Diffstat (limited to 'wqflask/secure_server.py')
-rw-r--r--wqflask/secure_server.py39
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)