thanks
but it doesn't work in TG2.
On Jun 9, 2:16 am, Daniel Fetchinson <[email protected]>
wrote:
> > i want to know which config file (development.ini, test.ini) was
> > loading when running setup-app or in deployment.
>
> > is there any method to get it?
>
> I don't know about tg2 but in tg1 the following helps:
>
> if turbogears.config.get( 'server.environment' ) == 'development':
> # you are using the devel version
> else:
> # you are using the production version
>
> HTH,
> Daniel
>
> --
> Psss, psss, put it down! -http://www.cafepress.com/putitdown
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---