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, 黄祥 <[email protected]> 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