Skip to content

Commit 10b97e8

Browse files
committed
Simplified config.
1 parent 1c59a2f commit 10b97e8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

config.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66

77

88
class 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

start.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22

33
export FLASK_APP=wsgi.py
44
export FLASK_DEBUG=1
5-
export APP_CONFIG_FILE=config.ini
65
flask run

0 commit comments

Comments
 (0)