Project

General

Profile

Configuration » History » Version 1

Aurynn Shaw, 01/22/2009 09:38 AM

1 1 Aurynn Shaw
= Configuring Simpycity =
2
3
== Settings ==
4
5
Configuring Simpycity is designed to be very quick, to get and stay out of your way.
6
7
As in [wiki:AQuickTutorial], configuration of Simpycity is very fast:
8
{{{
9
>>> from simpycity import config
10
>>> config.host = 'localhost'
11
>>> config.port = 5432
12
>>> config.user = 'user'
13
>>> config.password = 'password'
14
>>> config.database = 'dbname'
15
}}}
16
17
All parameters are named as you'd expect, and all settings are effectively global for all future Simpycity constructs.
18
19
== Debugging ==
20
21
Simpycity also supports outputting some debugging information, which can be useful in figuring out exactly why things aren't working properly.
22
23
Debugging is turned on via
24
{{{
25
>>> config.debug = True
26
}}}
27
28
Unfortunately, it's not using Python logging systems yet, so everything is just printed to stdout and there's no concept of logging levels.