File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 66
77
88class Config :
9- """Set Flask configuration vars from .env file."""
9+ """Set Flask configuration variables from .env file."""
1010
11- # General Config
11+ # General Flask Config
1212 SECRET_KEY = environ .get ('SECRET_KEY' )
13- FLASK_APP = environ .get ('FLASK_APP' )
1413 FLASK_ENV = environ .get ('FLASK_ENV' )
14+ FLASK_APP = 'wsgi.py'
15+ FLASK_DEBUG = 1
1516
1617 # Database
1718 SQLALCHEMY_DATABASE_URI = environ .get ("SQLALCHEMY_DATABASE_URI" )
18- SQLALCHEMY_TRACK_MODIFICATIONS = environ .get ("SQLALCHEMY_TRACK_MODIFICATIONS" )
19+ SQLALCHEMY_ECHO = True
20+ SQLALCHEMY_TRACK_MODIFICATIONS = False
Original file line number Diff line number Diff line change 22
33export FLASK_APP=wsgi.py
44export FLASK_DEBUG=1
5- export APP_CONFIG_FILE=config.ini
65flask run
You can’t perform that action at this time.
0 commit comments