Re: [PATCH] pgweb: Add SEARCH_DSN to example settings.py - Mailing list pgsql-www

From Magnus Hagander
Subject Re: [PATCH] pgweb: Add SEARCH_DSN to example settings.py
Date
Msg-id CABUevEy0y4vM77A_hbn8YXA6DpLx7dtbvsT+D_13gASbJNjizg@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] pgweb: Add SEARCH_DSN to example settings.py  (Célestin Matte <celestin.matte@cmatte.me>)
List pgsql-www
On Wed, Jan 19, 2022 at 3:30 PM Célestin Matte <celestin.matte@cmatte.me> wrote:
>
> Hi,
>
> I'm reviewing the patches I sent a few months ago and this short one seems to have been left mid-discussion.
>
> > I think having a default like in this patch is better. Otherwise it could randomly connect to a database with the
samename as the user for example, which might actually happen in dev scenarios. So if we want it empty we'd also need
toadd code to check if it's set or not before trying to use it - seems easier to set the default and have it fail :) 
>
> I guess it's OK as-is, then?

Yeah, indeed that was forgotten.

Patch now conflicted with your own patch for archives frontend
address. I adjusted it for that and applied. Thanks!


--
 Magnus Hagander
 Me: https://www.hagander.net/
 Work: https://www.redpill-linpro.com/



pgsql-www by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: [PATCH] Fix typo in an unsubscribe-related message
Next
From: Ilaria Battiston
Date:
Subject: GSoC 2022 [-www]