[PEAK] need hints on PEAK twisted support

Phillip J. Eby pje at telecommunity.com
Thu Apr 8 13:00:14 EDT 2004


At 12:48 PM 4/8/04 -0400, Stephen C. Waterbury wrote:
>Phillip J. Eby wrote:
>
>>to this:
>>[peak.logs]
>># Set default logging to stderr, DEBUG level
>>* = logs.LogStream(stream=importString('sys.stderr'), levelName="DEBUG")
>
>Thanks for your very quick replies, Phillip and Ulrich!
>That took care of *that* traceback.
>
>Now let's see how flexible PEAK is :> ...
>I have PostgreSQL installed, since I use it for my Twisted app.
>What would I have to change in the bulletins example to
>make it use PostgreSQL instead of SQLite?

Look a couple lines further up in the same file.  :)

Specifically, you'll want to change the bulletins.databaseURL to something 
like:

'pgsql://someuser:somepw@somehost/somedb'

Or, 'psycopg://...' if you're using the PsycoPG driver insted of PygreSQL.




More information about the PEAK mailing list