bbangert / Minger
Minger is a small crappy blog app that uses MongoDB. Not safe for public consumption.
| commit 31: | 88677ec91f2b |
| parent 30: | bdc9b36bc6f8 |
| branch: | default |
Only do filesystem checks in non-debug mode
Changed (Δ94 bytes):
raw changeset »
minger/config/environment.py (3 lines added, 1 lines removed)
Up to file-list minger/config/environment.py:
2 |
2 |
import os |
3 |
3 |
|
4 |
4 |
from mako.lookup import TemplateLookup |
5 |
from paste.deploy.converters import asbool |
|
5 |
6 |
from pylons import config |
6 |
7 |
from pylons.error import handle_mako_error |
7 |
8 |
|
| … | … | @@ -33,7 +34,8 @@ def load_environment(global_conf, app_co |
33 |
34 |
error_handler=handle_mako_error, |
34 |
35 |
module_directory=os.path.join(app_conf['cache_dir'], 'templates'), |
35 |
36 |
input_encoding='utf-8', default_filters=['escape'], |
36 |
imports=['from webhelpers.html import escape'] |
|
37 |
imports=['from webhelpers.html import escape'], |
|
38 |
filesystem_checks=asbool(config['debug'])) |
|
37 |
39 |
|
38 |
40 |
# CONFIGURATION OPTIONS HERE (note: all config options will override |
39 |
41 |
# any Pylons config options) |
