[Qgis-user] automate connection to a PostGIS db for QGIS

Alessandro Pasotti apasotti at gmail.com
Fri Jan 7 04:46:49 PST 2022


Hi,

you have a few options:

1. a shared global settings ini file with your pre-configured connections
https://docs.qgis.org/3.16/en/docs/user_manual/introduction/qgis_configuration.html#deploying-qgis-within-an-organization
2. a shared python init script
https://docs.qgis.org/3.16/en/docs/user_manual/introduction/qgis_configuration.html#code
, then you can write python code to initialize the connections or anything
else.

Kind regards.


On Fri, Jan 7, 2022 at 1:52 AM tim dunlevie <tim.dunlevie5 at gmail.com> wrote:

> Hi guys,
>
> About to host a PostGIS db on our server, and want users to connect to the
> db in QGIS.
> Is there a way I can push out a script (?) to all user's machines that
> sets the connection to the postgis db for QGIS?
> Rather than manually entering authentication on each machine?
> I have one generic role for users as they will be read-only users.
>
> thanks,
> Tim
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>


-- 
Alessandro Pasotti
QCooperative:  www.qcooperative.net
ItOpen:   www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220107/215cf6f8/attachment.html>


More information about the Qgis-user mailing list