diff options
| author | LV-426 <lv-426@taproot.org.il> | 2015-05-03 19:27:28 +0300 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2015-05-05 19:04:32 +0300 |
| commit | 445fe50c6bec016724da97cd3f8c35535e02c3a8 (patch) | |
| tree | ee0d273eae89c7f60a5f24f4c3d9e79fadb06a93 /src/server/rz_server.py | |
| parent | 4b77ba7125e202f112349901dd621ce287e4ad8f (diff) | |
rz_config: template.d_path
Diffstat (limited to 'src/server/rz_server.py')
| -rw-r--r-- | src/server/rz_server.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/rz_server.py b/src/server/rz_server.py index 0ddad61c..756eb1d9 100644 --- a/src/server/rz_server.py +++ b/src/server/rz_server.py @@ -40,6 +40,7 @@ class Config(object): neo4j_url root_path: root path from which the server will serve content user_db_path: absolute path to a Berkeley DB file used to store user accounts & password hash values + template.d_path: absolute path to the jinja HTML template dir """ @staticmethod @@ -49,6 +50,7 @@ class Config(object): cfg['development_mode'] = False cfg['root_path'] = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) + cfg['template.d_path'] = os.path.join(cfg['root_path'], 'template.d') cfg['user_db_path'] = './user_db.db' @@ -412,7 +414,7 @@ def init_webapp(cfg, kernel): # webapp = FlaskExt(__name__, static_folder='static', - template_folder=os.path.join(root_path, 'templates'), + template_folder=cfg.template_folder, static_url_path=cfg.static_url_path) webapp.config.from_object(cfg) webapp.root_path = root_path # for some reason calling config.from_xxx() does not have effect |
