Re: Thoughts on allowing PGAdmin4 config file override

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Clifford Richardson <cmrallen(at)gmail(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Thoughts on allowing PGAdmin4 config file override
Date: 2017-04-13 09:03:27
Message-ID: CA+OCxoz3eepE85sr9RATCDQOc2_EjazPBzFvBYU6soNyxR3Gkw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

On Wed, Apr 12, 2017 at 8:14 PM, Clifford Richardson <cmrallen(at)gmail(dot)com> wrote:
> Is anyone working on allowing config file override for the defaults listed
> in the config.py file for PGAdmin4?
>
> I know it's stated that it's recommended to run a "proper" wsgi server
> behind this, however if I need to change the bind address or logging it's
> kind of weird changing the config params in the lib.
>
> Thoughts?

Umm, you've never needed to edit config.py. Config options should be
overridden in config_local.py (intended for end users), or
config_distro.py (intended for packagers):

https://www.pgadmin.org/docs4/1.x/server_deployment.html#configuration

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2017-04-13 09:27:51 pgAdmin 4 commit: Tag REL-1_4 has been created.
Previous Message Dave Page 2017-04-13 08:19:50 Re: [Design Update] Visual design of query editor and results table