Switch to unified view

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