forked from sayoun/pyvac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
development.ini
95 lines (76 loc) · 2.12 KB
/
development.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[app:main]
use = egg:pyvac
pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
pyramid.includes =
pyramid_tm
pyramid_jinja2
pyvac
jinja2.directories = pyvac:templates
jinja2.i18n.domain = pyvac
jinja2.filters =
flash_type = pyvac.helpers.util:flash_type
flash_msg = pyvac.helpers.util:flash_msg
hournow = pyvac.helpers.util:hournow
datenow = pyvac.helpers.util:datenow
schedule_date = pyvac.helpers.util:schedule_date
is_manager = pyvac.helpers.util:is_manager
extract_cn = pyvac.helpers.util:extract_cn
plusify = pyvac.helpers.util:plusify
english_suffix = pyvac.helpers.util:english_suffix
# Pyvac specific options
sqlalchemy.url = sqlite:///%(here)s/pyvac.sqlite
sqlalchemy.echo = 0
# to be tested on postgresql
# sqlalchemy.url = postgresql://pyvac:pyvac@localhost:5432/pyvac
# AuthTktAuthenticationPolicy
# see http://pyramid.readthedocs.org/en/latest/api/authentication.html
pyvac.cookie_key = secret
# use ldap ?
pyvac.use_ldap = false
pyvac.ldap.yaml = %(here)s/conf/ldap.yaml
# for celery backend configuration
pyvac.celery.yaml = %(here)s/conf/pyvac.yaml
# should we force scheme to be used when redirecting ?
# pyvac.force_scheme = https
###
# wsgi server configuration
###
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 8000
###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
###
[loggers]
keys = root, pyvac, sqlalchemy
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_pyvac]
level = DEBUG
handlers = console
qualname = pyvac
[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARN" logs neither. (Recommended for production systems.)
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s