I appreciate the leads, Tres and Jonathan - little leads have saved me many 
times so far on this project haha.

What I'm doing right now is beyond simple. Since I'm having trouble finding 
postfork samples online, I'll show it:

#models.py
from cassaconn import SimpleClient #cassaconn is a module I created
CaSession = SimpleClient()

#__init__.py
from uwsgidecorators import *
from cassaconn.clients import SimpleClient
from .models import CaSession
@postfork
def connect_cassandra_client():
    CaSession.connect(['127.0.0.1'])

When I want to use Cassandra methods, I import CasSession and my 
SimpleClient class.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to