And I think it's:
if request.is_local:#<--- not a method.
con = "sqlite://....."
else:
con = "postgres://..."
db = DAL(con)
On 05/23/2012 06:14 PM, Bruno Rocha wrote:
if request.is_local():
con = "sqlite://....."
else:
con = "postgres://..."
db = DAL(con)
On Wed, May 23, 2012 at 12:06 PM, Jason Brower <encomp...@gmail.com
<mailto:encomp...@gmail.com>> wrote:
Locally I only want to use SQLite. And on the deployment I want
to use Postgres.
Is there a way to make this happen automatically?
BR,
Jason Brower
--
Bruno Rocha
[http://rochacbruno.com.br]