/
development.ini
107 lines (84 loc) · 2.09 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
96
97
98
99
100
101
102
103
104
105
106
107
[app:main]
use = egg:anuket
pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.debug_templates = true
pyramid.default_locale_name = en
pyramid.available_languages = en fr
pyramid.includes =
pyramid_debugtoolbar
pyramid_fanstatic
pyramid_tm
# fanstatic resources settings
fanstatic.debug = true
fanstatic.versioning = true
# mako template settings
mako.directories = anuket:templates
mako.module_directory = %(here)s/var/templates
mako.imports = from markupsafe import escape_silent
mako.default_filters = escape_silent
# pyramid_beaker settings
session.type = file
session.data_dir = %(here)s/var/sessions/data
session.lock_dir = %(here)s/var/sessions/lock
session.key = anuketkey
session.secret = anuketsecret
session.timeout = 3600
# database connection string
sqlalchemy.url = sqlite:///%(here)s/anuket.db
anuket.brand_name = Anuket
anuket.backup_directory = %(here)s/var/backups
#[filter:fanstatic]
#use = egg:fanstatic#fanstatic
#versioning = true
#bottom = true
#minified = True
#
#[pipeline:main]
#pipeline =
# fanstatic
# anuket
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
#database migration configuration
[alembic]
script_location = anuket:scripts/alembic
# file_template = %%(rev)s_%%(slug)s
# Begin logging configuration
[loggers]
keys = root, anuket, sqlalchemy
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_anuket]
level = DEBUG
handlers =
qualname = anuket
[logger_sqlalchemy]
level = INFO
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
[handler_errorlog]
class = FileHandler
args = ('%(here)s/var/error.log',)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
# End logging configuration