You can manually set

development = True or False

or use any other condition you like.


On Apr 23, 11:46 pm, Stifan Kristi <steve.van.chris...@gmail.com>
wrote:
> thank you so much for your pointer, massimo. a, i c, so that i must use the
> different table and different ip for the different environment, and describe
> it on the models (0.py or db.py).
> is it possible to use it in 1 ip? i mean for dev, testing and staging i use
> 1 ip (127.0.0.1:8000)
>
> thank you very much before
>
> On Sun, Apr 24, 2011 at 11:37 AM, Massimo Di Pierro <
>
>
>
>
>
>
>
> massimo.dipie...@gmail.com> wrote:
> > I usually in db.py or in 0.py
>
> > development = request.env.host_name==''127.0.0.1:8000'
>
> > if development:
> >    db=DAL('sqllite://development.sqlite')
> >    ...
> > else:
> >    db=DAL('mysql://....')
> >    ....
>
> > On Apr 23, 11:30 pm, 黄祥 <steve.van.chris...@gmail.com> wrote:
> > > hi,
>
> > > is it possible to separate the different environment like in ruby on
> > > rails? i mean, i want to make different environment for my dev
> > > application, test application, staging application and live
> > > application.
>
> > > any hint, pointer, suggestion is greatly appreciate. thank you very
> > > much before

Reply via email to