Opened 10 years ago

Closed 10 years ago

#10173 closed (wontfix)

Add a setting to set up pg binaries for test_runner

Reported by: laureline.guerin@… Owned by: nobody
Component: GIS Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Context: postgres/postgis.

For gis testing, when test database is created, pg commands are executed:

  • createlang (options) plpgsql
  • psql (options) -f <postgis files>

It would be great if both pg binary pathes could be set in settings, for example:

POSTGRES_PSQL_PATH = '/path/to/psql'
POSTGRES_CREATELANG_PATH = '/path/to/createlang'

Attachments (1)

django_pg_bin_test_runner.diff (1.2 KB) - added by laureline.guerin@… 10 years ago.
Patch for described changes

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by laureline.guerin@…

Patch for described changes

comment:1 Changed 10 years ago by Ramiro Morales

Can't this be solved externally to Django by setting the PATH envvar?. It seems to me that if Django should incorporate one additional setting to store the full path for every external command executed by a helper script we will end with a huge number of such settings.

comment:2 Changed 10 years ago by Malcolm Tredinnick

Resolution: wontfix
Status: newclosed

Yeah, this is becoming settings overload. It's a sysadmin issue: making sure the right binaries can be found.

if these binaries really are all over the place on different distros, or not on standard paths normally, then the more traditional solution would be an environment variable to declare which binary should be run. That can then be set in the users environment. Wontfixing the current approach. Seems a bit too specialised and not really the right approach.

Note: See TracTickets for help on using tickets.
Back to Top