I usually place the base_url in development.ini/production.ini so that it
can depend on the deploy configuration and can be accessed from everywhere
through tg.config
While there are smarter solutions by playing with callable classes or
closures I prefer the explicit approach as it's easily grasped by new
developers coming to the project.

On Sun, Oct 12, 2014 at 2:40 PM, <[email protected]> wrote:

> Thanks for the help
>
> Is there a way where i can get during a scheduled task some data about my
> webapp like the base url or something like that?
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/turbogears.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to