Yah, I was asking about Pyramid. Thanks a lot!

-Ben

On Mar 7, 9:51 am, Michael Merickel <mich...@merickel.org> wrote:
> 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 <benzhe...@gmail.com> wrote:
> > 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 __init__.py file.
>
> > Thanks!
>
> > -Ben
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "pylons-devel" group.
> > To post to this group, send email to pylons-devel@googlegroups.com.
> > To unsubscribe from this group, send email to
> > pylons-devel+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/pylons-devel?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to