Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/pylons/project_templates/cows_server/+package+/websetup.py_tmpl@4917
Line | |
---|
1 | """Setup the {{egg}} application""" |
---|
2 | import logging |
---|
3 | |
---|
4 | from paste.deploy import appconfig |
---|
5 | from pylons import config |
---|
6 | |
---|
7 | from {{package}}.config.environment import load_environment |
---|
8 | |
---|
9 | log = logging.getLogger(__name__) |
---|
10 | |
---|
11 | def setup_config(command, filename, section, vars): |
---|
12 | """Place any commands to setup your server here""" |
---|
13 | conf = appconfig('config:' + filename) |
---|
14 | load_environment(conf.global_conf, conf.local_conf) |
---|
Note: See
TracBrowser
for help on using the repository browser.