This is what I do. I create a model called 0.py and in it I put from gluon.storage import Storage settings=Storage() settings.production=False settings.email_sender=...' settings.email_hostname='....' # any other parameter I need
On 13 Lug, 02:06, Narendran <[email protected]> wrote: > Hi, > I have been trying to work without a config file, but it is a little > difficult to work across multiple (dev, test and prod) envs. I'd like > to know the solution if this has been already discussed: > 1. The db configuration in db.py changes in dev, test and prod env. > 2. App name changes in different env. > 3. Other global variables that can change in different envs. > > -- > Thanks > Narendran

