API: use of PostgreSQL instead of MySQL

API: use of PostgreSQL instead of MySQL
This commit is contained in:
SamR1
2018-01-07 18:11:19 +01:00
parent 81b1370b5e
commit a8faabddc3
6 changed files with 11 additions and 8 deletions

View File

@ -20,7 +20,7 @@ class DevelopmentConfig(BaseConfig):
"""Development configuration"""
DEBUG = True
SQLALCHEMY_DATABASE_URI = \
'mysql+mysqldb://mpwo:mpwo@127.0.0.1:3306/mpwo'
os.environ.get('DATABASE_URL')
SECRET_KEY = 'development key'
USERNAME = 'admin'
PASSWORD = 'default'
@ -31,7 +31,7 @@ class TestingConfig(BaseConfig):
"""Development configuration"""
DEBUG = True
SQLALCHEMY_DATABASE_URI = \
'mysql+mysqldb://mpwo:mpwo@127.0.0.1:3306/mpwo_test'
os.environ.get('DATABASE_TEST_URL')
SECRET_KEY = 'test key'
USERNAME = 'admin'
PASSWORD = 'default'