Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / development.ini @ 805cc54a

History | View | Annotate | Download (4.62 KB)

1
#
2
# dashboard - Pylons development environment configuration
3
#
4
# The %(here)s variable will be replaced with the parent directory of this file
5
#
6
# This file is for deployment specific config options -- other configuration
7
# that is always required for the app is done in the config directory, 
8
# and generally should not be modified by end users. 
9

    
10
[DEFAULT]
11
debug = true
12
# Uncomment and replace with the address which should receive any error reports
13
#email_to = you@yourdomain.com
14
smtp_server = localhost
15
error_email_from = paste@localhost
16

    
17
[server:main]
18
use = egg:Paste#http
19
host = 127.0.0.1 
20
port = 8080
21

    
22
[app:main]
23
use = egg:dashboard
24
full_stack = true
25
#lang = ru
26
cache_dir = %(here)s/data
27
beaker.session.key = dashboard
28
beaker.session.secret = somesecret
29
# If you'd like to fine-tune the individual locations of the cache data dirs
30
# for the Cache data, or the Session saves, un-comment the desired settings
31
# here:
32
#beaker.cache.data_dir = %(here)s/data/cache
33
#beaker.session.data_dir = %(here)s/data/sessions
34

    
35
# pick the form for your database
36
# %(here) may include a ':' character on Windows environments; this can
37
# invalidate the URI when specifying a SQLite db via path name
38
# sqlalchemy.url=postgres://username:password@hostname:port/databasename 
39
sqlalchemy.url=mysql://root:tandreja@localhost:3306/newdb
40

    
41

    
42
# If you have sqlite, here's a simple default to get you started
43
# in development
44

    
45
# sqlalchemy.url = sqlite:///%(here)s/devdata.db
46
#echo shouldn't be used together with the logging module.
47
sqlalchemy.echo = false
48
sqlalchemy.echo_pool = false
49
sqlalchemy.pool_recycle = 3600
50

    
51
# if you are using Mako and want to be able to reload
52
# the mako template from disk during the development phase
53
# you should say 'true' here
54
# This option is only used for mako templating engine
55
# WARNING: if you want to deploy your application using a zipped egg
56
# (ie: if your application's setup.py defines zip-safe=True, then you
57
# MUST put "false" for the production environment because there will
58
# be no disk and real files to compare time with.
59
# On the contrary if your application defines zip-safe=False and is
60
# deployed in an unzipped manner, then you can leave this option to true
61
templating.mako.reloadfromdisk = true
62

    
63
# the compiled template dir is a directory that must be readable by your
64
# webserver. It will be used to store the resulting templates once compiled
65
# by the TemplateLookup system.
66
# During development you generally don't need this option since paste's HTTP
67
# server will have access to you development directories, but in production
68
# you'll most certainly want to have apache or nginx to write in a directory
69
# that does not contain any source code in any form for obvious security reasons.
70
#
71
#templating.mako.compiled_templates_dir = /some/dir/where/webserver/has/access
72

    
73
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
74
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
75
# execute malicious code after an exception is raised.
76
#set debug = false
77

    
78
# Logging configuration
79
# Add additional loggers, handlers, formatters here
80
# Uses python's logging config file format
81
# http://docs.python.org/lib/logging-config-fileformat.html
82

    
83
# "level = INFO" logs SQL queries.
84
# "level = DEBUG" logs SQL queries and results.
85
# "level = WARN" logs neither.  (Recommended for production systems.)
86

    
87
[loggers]
88
keys = root, dashboard, sqlalchemy, auth
89

    
90
[handlers]
91
keys = console,sql_log,root_log,dashboard_log,auth_log
92

    
93
[formatters]
94
keys = generic
95

    
96
# If you create additional loggers, add them as a key to [loggers]
97
[logger_root]
98
level = DEBUG 
99
handlers = root_log
100

    
101
[logger_dashboard]
102
level = DEBUG
103
handlers = dashboard_log
104
qualname = dashboard
105

    
106
[logger_sqlalchemy]
107
level = DEBUG
108
handlers = sql_log
109
qualname = sqlalchemy.engine
110

    
111
# A logger for authentication, identification and authorization -- this is
112
# repoze.who and repoze.what:
113
[logger_auth]
114
level = DEBUG
115
handlers = auth_log
116
qualname = auth
117

    
118
# If you create additional handlers, add them as a key to [handlers]
119
[handler_console]
120
class = StreamHandler
121
args = (sys.stderr,)
122
level = NOTSET
123
formatter = generic
124

    
125
[handler_sql_log]
126
class = FileHandler
127
args = ('log/sql.log','a')
128
level = DEBUG
129
formatter = generic
130

    
131
[handler_root_log]
132
class = FileHandler
133
args = ('log/root.log','a')
134
level = DEBUG
135
formatter = generic
136

    
137
[handler_dashboard_log]
138
class = FileHandler
139
args = ('log/dashboard.log','a')
140
level = DEBUG
141
formatter = generic
142

    
143
[handler_auth_log]
144
class = FileHandler
145
args = ('log/auth.log','a')
146
level = DEBUG
147
formatter = generic
148

    
149
# If you create additional formatters, add them as a key to [formatters]
150
[formatter_generic]
151
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
152
datefmt = %H:%M:%S
153