Re: Newbie Question about app configuration

2011-03-07 Thread Ben
Yah, I was asking about Pyramid. Thanks a lot! -Ben On Mar 7, 9:51 am, Michael Merickel wrote: > Assuming you're asking about Pyramid, the settings are accessible through > the request object. > >     settings = request.registry.settings >     secret = settings['auth.secret'] > > Michael > > > >

Re: Newbie Question about app configuration

2011-03-07 Thread Michael Merickel
Assuming you're asking about Pyramid, the settings are accessible through the request object. settings = request.registry.settings secret = settings['auth.secret'] Michael On Sun, Mar 6, 2011 at 11:55 PM, Ben wrote: > I have question about custom configuration, for example if I want t

Newbie Question about app configuration

2011-03-06 Thread Ben
I have question about custom configuration, for example if I want to config a Secret Key for my app security and I want to put it in development.ini (production.ini may have a different value). How can I access this value in my views? It seems all settings in development.ini is only access in __ini