No project description provided
Project description
Bottle Configuration – Configure Bottle from files.
Requirements
python >= 2.6
Installation
Bottle Configuration should be installed using pip:
pip install bottle_config
Usage
The application provide configuration like Django settings.
settings.py:
DEBUG = True ANOTHER_OPTION = 'VALUE'
import bottle from bottle_config import config app = bottle.Bottle() app.install(config) # See app.config
import bottle from bottle_config import Config app = bottle.Bottle() app.install(Config('custom.default.module')) # See app.config
Use environment variable BOTTLE_CONFIG to set a configuration module
BOTTLE_CONFIG=project.config.production python app.py
Bug tracker
If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/bottle_config/issues
Contributing
Development of starter happens at github: https://github.com/klen/bottle_config
Contributors
klen (Kirill Klenov)
License
Licensed under a BSD license.