Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhCkr-0003YB-SH for pgsql-www@arkaria.postgresql.org; Sun, 31 Oct 2021 15:28:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mhCkK-0000Uv-KX for pgsql-www@arkaria.postgresql.org; Sun, 31 Oct 2021 15:27:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhCkK-0000Um-9T for pgsql-www@lists.postgresql.org; Sun, 31 Oct 2021 15:27:44 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mhCkH-0008UQ-AR for pgsql-www@lists.postgresql.org; Sun, 31 Oct 2021 15:27:43 +0000 Received: by mail-lf1-x12c.google.com with SMTP id j9so31528671lfu.7 for ; Sun, 31 Oct 2021 08:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander-net.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ciKkSdBz4bCXu/hot9RvTKSGxF+iS5m437GV8zyYKhw=; b=MCpPUQlf5ks51mSpzxXQfr/7k/fMXOGqZJ5IZrGqwyfOg0Yuez2AP884ND2olVmNEL jNOknIt1o06xf8k7GFvqyblI0eNQkIvFfy3CmL+XbJMjNRWf/MoWS5Le2sO7vWJ21Lpq L1WwwjiiPdU/mDbCdHppnrpTkmEg6iDk9uYMYn7aTAS5sQAvONI0K3zLeBUTOVAloH+5 Z19i/J58YcTtQk7nuWpR/KLkRaqSbEizfQ44e6e0Qcvz0omwJvUIyrbEPzHJCXWjshaq lSjEfAEMw0QUfaWImOZZO0P4VEvzqb6LD4OxMB8asRn+TVcokI7cKmowZZQ/G7FqpTHH r8wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ciKkSdBz4bCXu/hot9RvTKSGxF+iS5m437GV8zyYKhw=; b=HdEjVpqQ6wpdk460T0mdFhe6T5A4OQP4Pnky6I6bCBYp7mXfwfU4JU4o44sClb4mQC m0OM9LacSVg2deW6bcF2AtdE45wsU+xCl6mNPsmfddvIqYwRiqL5fhHzi9EOuHuLWu2k PErwC8u0LcSMrfzGJNw6nsNyfmfU2dGvtSUN6gy1lnbeor4/REwd6k4o/hrY3JZjroY6 YBxEXh1qKg7zuVpYIDWglrIo7v/QqePqQc8UqpuU7Bnt77E+Bjva5YnhHXFw/mHMhIuF qbeWToiUx9mLpqA0DoweAcckb9oLzeW+RfWuKQdlqoW54vatNZrs6d6fqNErem6+GF4A dK9A== X-Gm-Message-State: AOAM533tfd9zLL7NHTr7E+zHUV0jOAnZ+ukEiZsWTL9d9euP+ZJZJjOI uxXlBV8CPmcphx4dj44XhVLsNlzSaNcBAyBuBwmblA/3+HWL8BVu X-Google-Smtp-Source: ABdhPJzMx+p1+kzjFgEOZ5q6gGa/lCPV+qPYTcnTB5+gNDK8vfOzH948Ap3uK9/0T4vFaGuOLVZhJf7EhxMFn/a27TU= X-Received: by 2002:a19:ef13:: with SMTP id n19mr3790217lfh.496.1635694060480; Sun, 31 Oct 2021 08:27:40 -0700 (PDT) MIME-Version: 1.0 References: <4de7ef7b-cdb3-2d97-5e6a-444e48b192bf@cmatte.me> In-Reply-To: <4de7ef7b-cdb3-2d97-5e6a-444e48b192bf@cmatte.me> From: Magnus Hagander Date: Sun, 31 Oct 2021 15:27:29 +0000 Message-ID: Subject: Re: [PATCH] pglister: Add possibility to override settings.py in settings_local.py To: =?UTF-8?Q?C=C3=A9lestin_Matte?= Cc: PostgreSQL WWW Content-Type: multipart/alternative; boundary="0000000000006fc07a05cfa7b3c4" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000006fc07a05cfa7b3c4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Oct 27, 2021 at 4:02 PM C=C3=A9lestin Matte 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. --=20 Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/ --0000000000006fc07a05cfa7b3c4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Oct 27, 2021 at 4:02 PM C=C3= =A9lestin Matte <celestin.ma= tte@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:=C2=A0 =C2=A0 from .local_settings import *
except ImportError:
=C2= =A0 =C2=A0 pass


Just a couple of line= s above where you are adding it back again. Is that also for some reason no= t working?

And it is important that it is included= before we do the exim part for example -- otherwise you cannot control tha= t from within local_settings.py.
=C2=A0
--
=C2=A0Magnus = Hagander
=C2=A0Me: https://www.hagander.net/
=C2=A0Work: https://www.redpill-linpro.com/
<= /div>
--0000000000006fc07a05cfa7b3c4--