I usually just set a constant in a models/conf.py (along with DB and
other params which vary on the development and the deployment setup)
and check for that.

On Jan 28, 1:23 pm, rctay <rcta...@gmail.com> wrote:
> Hi,
>
> what do you guys think of providing a global variable (at application-
> level), say, WEB2PY_APP_IS_DEVELOPING?
>
> it would be useful for applications yet to enter production, so that
> one could enable various functionality/code that would be useful for
> developing applications.
>
> eg.
> if (WEB2PY_APP_IS_DEVELOPING):
>   reload(module)
>
> you could control this with a command-line option like --
> developingapps app1,app2,...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to