Re: [flask] Save to import the app inside the default config?
- From:
- Oliver Andrich
- Date:
- 2010-06-20 @ 15:35
Hi Armin,
2010/6/20 Armin Ronacher <armin.ronacher@active-4.com>
> Hi,
>
> On 6/20/10 5:17 PM, Oliver Andrich wrote:
> > I am asking myself, if it is save to import the app project inside the
> > default configuration file, which is imported
> > by app.config.from_object('foobar.default_config'). It would be handy,
> > cause I like to use the app.root_path inside the config for some
> > reasonable filesystem defaults. It would be easy to find out myself
> > using the os module, but Flask already does that...
> It should be save if you are using the latest Werkzeug development
> version. Before that, probably not.
>
Thanks for the information. I am currently using 0.6.2. So, I think I will
take the save road for the moment and discover the path myself using the os
module.
Best regards,
Oliver
>
>
> Regards,
> Armin
>