Update app config
This commit is contained in:
parent
e266dce5db
commit
6b49829c0f
4
app.py
4
app.py
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user