Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigigraph / development.ini @ 43e9f440

History | View | Annotate | Download (4.17 KB)

1 0931fc44 Thomas BURGUIERE
#
2
# vigigraph - 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 4cdb7492 Thomas BURGUIERE
host = 0.0.0.0 
20
port = 8082
21 0931fc44 Thomas BURGUIERE
22
[app:main]
23
use = egg:vigigraph
24
full_stack = true
25
#lang = ru
26
cache_dir = %(here)s/data
27
beaker.session.key = vigigraph
28
beaker.session.secret = somesecret
29 98c1bcf7 Thomas BURGUIERE
app.vigicore = /
30 0931fc44 Thomas BURGUIERE
31
# If you'd like to fine-tune the individual locations of the cache data dirs
32
# for the Cache data, or the Session saves, un-comment the desired settings
33
# here:
34
#beaker.cache.data_dir = %(here)s/data/cache
35
#beaker.session.data_dir = %(here)s/data/sessions
36
37
# pick the form for your database
38
# %(here) may include a ':' character on Windows environments; this can
39
# invalidate the URI when specifying a SQLite db via path name
40
# sqlalchemy.url=postgres://username:password@hostname:port/databasename 
41
# sqlalchemy.url=mysql://username:password@hostname:port/databasename
42
43
44
# If you have sqlite, here's a simple default to get you started
45
# in development
46
47
sqlalchemy.url = sqlite:///%(here)s/devdata.db
48
#echo shouldn't be used together with the logging module.
49
sqlalchemy.echo = false
50
sqlalchemy.echo_pool = false
51
sqlalchemy.pool_recycle = 3600
52
53
# if you are using Mako and want to be able to reload
54
# the mako template from disk during the development phase
55
# you should say 'true' here
56
# This option is only used for mako templating engine
57
# WARNING: if you want to deploy your application using a zipped egg
58
# (ie: if your application's setup.py defines zip-safe=True, then you
59
# MUST put "false" for the production environment because there will
60
# be no disk and real files to compare time with.
61
# On the contrary if your application defines zip-safe=False and is
62
# deployed in an unzipped manner, then you can leave this option to true
63
templating.mako.reloadfromdisk = true
64
65
# the compiled template dir is a directory that must be readable by your
66
# webserver. It will be used to store the resulting templates once compiled
67
# by the TemplateLookup system.
68
# During development you generally don't need this option since paste's HTTP
69
# server will have access to you development directories, but in production
70
# you'll most certainly want to have apache or nginx to write in a directory
71
# that does not contain any source code in any form for obvious security reasons.
72
#
73
#templating.mako.compiled_templates_dir = /some/dir/where/webserver/has/access
74
75
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
76
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
77
# execute malicious code after an exception is raised.
78
#set debug = false
79
80
# Logging configuration
81
# Add additional loggers, handlers, formatters here
82
# Uses python's logging config file format
83
# http://docs.python.org/lib/logging-config-fileformat.html
84
85
[loggers]
86
keys = root, vigigraph, sqlalchemy, auth
87
88
[handlers]
89
keys = console
90
91
[formatters]
92
keys = generic
93
94
# If you create additional loggers, add them as a key to [loggers]
95
[logger_root]
96
level = INFO
97
handlers = console
98
99
[logger_vigigraph]
100
level = DEBUG
101
handlers =
102
qualname = vigigraph
103
104
[logger_sqlalchemy]
105
level = INFO
106
handlers =
107
qualname = sqlalchemy.engine
108
# "level = INFO" logs SQL queries.
109
# "level = DEBUG" logs SQL queries and results.
110
# "level = WARN" logs neither.  (Recommended for production systems.)
111
112
113
# A logger for authentication, identification and authorization -- this is
114
# repoze.who and repoze.what:
115
[logger_auth]
116
level = WARN
117
handlers = 
118
qualname = auth
119
120
# If you create additional handlers, add them as a key to [handlers]
121
[handler_console]
122
class = StreamHandler
123
args = (sys.stderr,)
124
level = NOTSET
125
formatter = generic
126
127
# If you create additional formatters, add them as a key to [formatters]
128
[formatter_generic]
129
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
130
datefmt = %H:%M:%S