import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): # ... SQLALCHEMY_DATABASE_URI = 'mysql://user:pw@mariadb:3306/calendarwatch' SQLALCHEMY_TRACK_MODIFICATIONS = False