On 05/23/2012 06:40 PM, Anthony wrote:
If you use the built-in Rocket server in development but another server (e.g., Apache, Nginx) on production, you could also do:

||
ifrequest.env.server_software.startswith('Rocket'):
    con ='sqlite://...'
etc.

Anthony

On Wednesday, May 23, 2012 11:14:18 AM UTC-4, rochacbruno 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]

Nice points guys.  Thanks.
BR,
Jason

Reply via email to