Files
flask_url_shortener/tiny0/config.py
T

10 lines
271 B
Python
Raw Normal View History

2020-07-18 13:10:03 +00:00
import json
with open("tiny0/config.json", "r") as config_file:
config_data = json.load(config_file)
WEBSITE_DOMAIN = config_data.get("WEBSITE_DOMAIN")
2020-07-18 13:10:03 +00:00
SECRET_KEY = config_data.get("SECRET_KEY")
SQLALCHEMY_DATABASE_URI = config_data.get("SQLALCHEMY_DATABASE_URI")