]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blob - wradmin/development.ini
Adding use_unicode=0 to the MySQL database connection string restores the behavior...
[philipp/winterrodeln/wradmin.git] / wradmin / development.ini
1 #
2 # wradmin - Pylons development environment configuration
3 #
4 # The %(here)s variable will be replaced with the parent directory of this file
5 #
6 [DEFAULT]
7 debug = true
8 # address which should receive any error reports
9 email_to = philipp.spitzer@winterrodeln.org
10 smtp_server = localhost
11 error_email_from = philipp.spitzer@winterrodeln.org
12
13 [server:main]
14 use = egg:Paste#http
15 host = 127.0.0.1
16 port = 5000
17
18 [app:main]
19 use = egg:wradmin
20 full_stack = true
21 static_files = true
22
23 cache_dir = %(here)s/data
24 beaker.session.key = wradmin
25 beaker.session.secret = somesecret
26
27 authkit.setup.method = basic
28 authkit.basic.realm = Winterrodeln Admin
29 authkit.basic.authenticate.user.type = wradmin.lib.mediawiki:MediaWikiUsers
30 authkit.basic.authenticate.user.data = 
31
32 # If you'd like to fine-tune the individual locations of the cache data dirs
33 # for the Cache data, or the Session saves, un-comment the desired settings
34 # here:
35 #beaker.cache.data_dir = %(here)s/data/cache
36 #beaker.session.data_dir = %(here)s/data/sessions
37
38 # SQLAlchemy database URL
39 sqlalchemy.url = mysql://philipp@localhost:3306/winterrodeln_wiki?charset=utf8&use_unicode=0
40 # If use_unicode=1, sqlalchemy requests unicode strings from the MySQLdb backend (and does not do the conversion itself), however, since the tables are defined as 'varchar(x) binary' only binary string are returned and not converted to unicode.
41 # necessary for mySQL databases
42 sqlalchemy.pool_recycle = 3600
43 # sqlalchemy.echo_pool = 1
44 # sqlalchemy.echo=true
45
46 # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
47 # Debug mode will enable the interactive debugging tool, allowing ANYONE to
48 # execute malicious code after an exception is raised.
49 #set debug = false
50
51
52 # Logging configuration
53 [loggers]
54 keys = root, routes, wradmin
55
56 [handlers]
57 keys = console, file
58
59 [formatters]
60 keys = generic
61
62 [logger_root]
63 level = INFO
64 # handlers = file
65 handlers = console
66
67 [logger_routes]
68 level = INFO
69 handlers =
70 qualname = routes.middleware
71 # "level = DEBUG" logs the route matched and routing variables.
72
73 [logger_wradmin]
74 level = DEBUG
75 handlers =
76 qualname = wradmin
77
78 [handler_console]
79 class = StreamHandler
80 args = (sys.stderr,)
81 level = NOTSET
82 formatter = generic
83
84 [handler_file]
85 class = FileHandler
86 args = ('/tmp/pylons_application.log', 'a')
87 level = INFO
88 formatter = generic
89
90 [formatter_generic]
91 format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
92 datefmt = %H:%M:%S