amitu / importd

django based mini framework inspired from sinatra. fully compatible with django.
http://amitu.com/importd/
BSD 3-Clause "New" or "Revised" License
510 stars 30 forks source link

read settings.yml/json if present next to app name #60

Open amitu opened 9 years ago

amitu commented 9 years ago

Unless use_yml=False.

local_settings.yml will override settings.py.

Also env variables will have higher precedence over both of these. Eg if I pass some environment from supervisord.conf file.

in yml file there can be key named "extends", which will read another yml file and update its values. "extends" does not need an extension. eg base.yml then "extends": "base".

If there is no base.yml, but base is importable, then it will be imported and its content be used instead.

Extend can be recursive.