Verified Commit 8e38aac9 authored by Robin Obůrka's avatar Robin Obůrka Committed by Martin Prudek

Change configuration management style

parent 177a3381
from flask import Flask
app = Flask(__name__)
app.config.from_pyfile("default.cfg")
app.config.from_envvar("CERT_API_SETTINGS", silent=True)
app = Flask(__name__, instance_relative_config=True)
app.config.from_object("certapi.default_settings")
app.config.from_pyfile("local.cfg", silent=True)
app.config.from_envvar("FLASK_APP_SETTINGS", silent=True)
import certapi.views
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment