Master

I think this if should be moved to `settings.py`, it should behave in the same way as AD.
And probably it should be `app.config.get()`.