Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alternative socket path for postgis #264

Closed
vchrisb opened this issue Jul 23, 2020 · 1 comment
Closed

alternative socket path for postgis #264

vchrisb opened this issue Jul 23, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@vchrisb
Copy link

vchrisb commented Jul 23, 2020

For "postgres//..." it is possible to configure an alternative socket path.
This is handled here: https://github.com/joke2k/django-environ/blob/master/environ/environ.py#L405

But this option is not enabled for postgist, making it not possible to configure a non standard socket path.

I guess it should be:
if url.scheme == 'postgres' or url.scheme == 'postgis' and path.startswith('/'):

@sergeyklay
Copy link
Collaborator

This is resolved in develop branch. Thank you for the report, and for helping us make django-environ better. And I am sorry about the delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants