]> asedeno.scripts.mit.edu Git - bluechips.git/blob - bluechips/websetup.py
We have pie charts.
[bluechips.git] / bluechips / websetup.py
1 """Setup the BlueChips application"""
2 import logging
3
4 from bluechips.config.environment import load_environment
5
6 log = logging.getLogger(__name__)
7
8 def setup_app(command, conf, vars):
9     """Place any commands to setup bluechips here"""
10     load_environment(conf.global_conf, conf.local_conf)
11
12     # Load the models
13     from bluechips.model import meta
14     meta.metadata.bind = meta.engine
15
16     # Create the tables if they aren't there already
17     meta.metadata.create_all(checkfirst=True)