While reading exploreflask.com, I learned that it is best practice to use two different config files, one for development and one for production. I don\'t understand whether
I use a mixture of hardcoded values and environment variables in my production config.py:
import os
class Config(object):
SECRET_KEY = os.environ.get("SECRET_KEY")
SQLALCHEMY_DATABASE_URI = os.environ.get("DB_PROD")
SQLALCHEMY_TRACK_MODIFICATIONS = False
In my development config.py, eveything is hardcoded.