Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from flask import Flask, render_template, request
# from flask.ext.sqlalchemy import SQLAlchemy
# from flask_pymongo import PyMongo
import logging
from logging import Formatter, FileHandler
from forms import *
Expand All @@ -16,6 +17,7 @@
app = Flask(__name__)
app.config.from_object('config')
#db = SQLAlchemy(app)
#mongo = PyMongo(app)

# Automatically tear down SQLAlchemy.
'''
Expand All @@ -36,6 +38,12 @@ def wrap(*args, **kwargs):
return redirect(url_for('login'))
return wrap
'''

# Config MongoDB
'''
app.config['MONGO_DBNAME'] = 'dbname'
app.config['MONGO_URI'] = 'mongodb://localhost:27017/dbname'
'''
#----------------------------------------------------------------------------#
# Controllers.
#----------------------------------------------------------------------------#
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Flask-SQLAlchemy
Flask-WTF
WTForms
coverage
pymongo==3.4.0
Flask-PyMongo==0.4.1
# ecdsa
# paramiko
# pycrypto