Hi,

  In which section You put Your directive in ini file? If in
[app:main] You should make in Your model file:

  from pylons import config
  config['my.directive']

  where ini file contain:

  my.directive = foobar

On Tue, Oct 26, 2010 at 6:15 PM, Juliusz Gonera <[email protected]> wrote:
> Hi,
>
> I have a model called Gallery that needs to create some directories. The
> path where it should create them is stored in the .ini file. I wanted to
> access it but I keep getting KeyError. Does it mean that I can not access
> config in the model? Should I simply make a Python file in the config
> directory of my project and store the app config there?
>
> Regards,
>
> --
> Juliusz Gonera
> http://juliuszgonera.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>
>



-- 
><> Jan Koprowski

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

Reply via email to