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 1mhFAW-0000pC-RD for pgsql-www@arkaria.postgresql.org; Sun, 31 Oct 2021 18:02:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mhFAV-0001ir-GS for pgsql-www@arkaria.postgresql.org; Sun, 31 Oct 2021 18:02:55 +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 1mhFAV-0001ih-7H for pgsql-www@lists.postgresql.org; Sun, 31 Oct 2021 18:02:55 +0000 Received: from ploudseeker.com ([78.199.165.48]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhFAP-0001A3-JM for pgsql-www@lists.postgresql.org; Sun, 31 Oct 2021 18:02:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cmatte.me; s=myselector; t=1635703367; bh=rBC5cx06vX+73KpFtMceGcSvgovKFJk7SR5JVJ+vlDQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=BbPL+sCK2JzPPUDRRJCYq38TfHlVis8KNal2EY++OFTAb0/w7YmflTJc+YNJ2MEXn +6zN4zJUYcL/DJhmW7vOJGBc2of7fOZzHD6b56TuaDGfRUW7zASWCfy6yFHcua4DsJ e0cTzsKc1wlwEeTGvxLTZkarmWCTqYkGn3LG2TjjWG2JQHwizCIAqQbfgfGzDvlFKJ FYqhNNDBvLc6J7Ni8Em6E2MnGaS7dqt8hAiiSap8q7qbgsuEItr5j90aHcIFLc+WSO cmEsm/ZHxO+OE4zoVb9zBj5fkE2uzghxwGxvBdhblQDQvXRkOs6gIxftLdM2YI45r+ o+nT8ezZgiAYg== Message-ID: Date: Sun, 31 Oct 2021 19:02:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH] pglister: Add possibility to override settings.py in settings_local.py Content-Language: en-US To: Magnus Hagander Cc: PostgreSQL WWW References: <4de7ef7b-cdb3-2d97-5e6a-444e48b192bf@cmatte.me> From: =?UTF-8?Q?C=c3=a9lestin_Matte?= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, > > 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? Right, I missed that. It's just that in pgweb and pgarchives, the file is called settings_local.py, whereas pglister calls it local_settings.py. This is just a question of naming consistency, then. Do you think it's worth patching? > Second, I'm not sure why we want to exclude local_settings.py from pycodestyle in general? It's ignored in pgweb, I just assumed there was a good reason for that and did the same thing for consistency. Cheers, -- Célestin Matte