Update app config

This commit is contained in:
Andros Fenollosa 2017-05-16 22:03:04 +02:00
parent e266dce5db
commit 6b49829c0f

4
app.py
View File

@ -4,7 +4,8 @@ from forms import ContactForm
# Flask # Flask
app = Flask(__name__) app = Flask(__name__)
app.secret_key = 'my secret' app.config['SECRET_KEY'] = 'my secret'
app.config['DEBUG'] = True
# Database # Database
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///book.sqlite' app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///book.sqlite'
@ -107,5 +108,4 @@ def contacts_delete():
if __name__ == "__main__": if __name__ == "__main__":
app.debug = True
app.run() app.run()