]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blob - wradmin/websetup.py
Changed some dependencies - however I realized that Plyons is not Python 3 compatible.
[philipp/winterrodeln/wradmin.git] / wradmin / websetup.py
1 """Setup the wradmin application"""
2 import logging
3 import pylons.test
4
5 from wradmin.config.environment import load_environment
6 from wradmin.model import meta
7
8 log = logging.getLogger(__name__)
9
10 def setup_app(command, conf, vars):
11     """Place any commands to setup wradmin here"""
12     if not pylons.test.pylonsapp:
13         load_environment(conf.global_conf, conf.local_conf)
14
15     ## Create the tables if they don't already exist
16     # meta.metadata.create_all(bind=meta.engine)