sorry, I don't understand your answer. What does mult tenance mean?
There is no description for tenant in the request documentation. When
I access request.tenant in my local app it is None.

On 18 Mrz., 03:09, Bruno Rocha <rochacbr...@gmail.com> wrote:
> Mult tenance, in web2py you have request.tenant
>
> I use SQLite for configs
>
> http://zerp.ly/rochacbruno
> Em 17/03/2012 21:26, "Alex" <mrauc...@gmail.com> escreveu:
>
>
>
>
>
>
>
> > Hi,
>
> > what is the best way to have settings depending on the environment? I
> > know this question has been asked a couple of times before but I could
> > not find any useful answers.
>
> > I want to run multiple instances of my application for multiple
> > customers, which also means a different db connection for each
> > instance. I did not see an (elegant) solution in web2py for this
> > problem. I do not want to create a new package for each instance which
> > would be really annoying to do for each deployment. Currently I'm
> > passing the db settings as environment variables. For me this feels
> > more like a hack but at least it worked - so far. Now I want to run
> > cron jobs with external cron. This is a problem because I can't pass
> > the environment settings (which I would have to hard code a second
> > time anyway), so I can't access the db in the cron job tasks.
>
> > It would really be great if web2py had some config settings like in
> > most other frameworks.

Reply via email to