Hmm, you don't sound like you're using any VCS/SCM.

anyway, by using that flag, you could minimize the possibility of
human error (ie. the possibility that you forgot to update that
variable on either setup while moving code between both).

you could also debug your deployment setup quickly by turning on that
flag.

On Jan 29, 10:15 pm, achipa <attila.cs...@gmail.com> wrote:
> 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