Re: [PATCH] pglister: Add possibility to override settings.py in settings_local.py - Mailing list pgsql-www

From Magnus Hagander
Subject Re: [PATCH] pglister: Add possibility to override settings.py in settings_local.py
Date
Msg-id CABUevEx=CB6Ka1hjmidDUrsQP01QCLq=T+sLiJVTSiCDD+RQ3Q@mail.gmail.com
Whole thread Raw
In response to [PATCH] pglister: Add possibility to override settings.py in settings_local.py  (Célestin Matte <celestin.matte@cmatte.me>)
Responses Re: [PATCH] pglister: Add possibility to override settings.py in settings_local.py  (Célestin Matte <celestin.matte@cmatte.me>)
List pgsql-www


On Wed, Oct 27, 2021 at 4:02 PM Célestin Matte <celestin.matte@cmatte.me> wrote:
Following the model of pgweb and pgarchives

Hi!

local_settings.py is already ignored in web/pglister/.gitignore -- does that not work for some reason? It works fine from here.

Second, I'm not sure why we want to exclude local_settings.py from pycodestyle in general?

And finally, settings.py already contains:
try:
    from .local_settings import *
except ImportError:
    pass


Just a couple of lines above where you are adding it back again. Is that also for some reason not working?

And it is important that it is included before we do the exim part for example -- otherwise you cannot control that from within local_settings.py.
 
--

pgsql-www by date:

Previous
From: Célestin Matte
Date:
Subject: [PATCH 2/2] pgarchives: Add missing example pgauth config in settings.py
Next
From: Célestin Matte
Date:
Subject: Re: [PATCH] pglister: Add possibility to override settings.py in settings_local.py