#21296: settings: adding a the unix socket dir path in DATABASES HOST works for postgres too -------------------------------+------------------------------------ Reporter: rm_ | Owner: nobody Type: Uncategorized | Status: new Component: Documentation | Version: 1.5 Severity: Normal | Keywords: postgres settings host Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+------------------------------------ The host documentation [1] doesn't mention that passing a unix socket dir (unix_socket_directory in postgresql.conf) as value of HOST will have postgresql use that instead of default /var/run/postgresql/.s.PGSQL.5432 . Since there is an explicit example for MySQL i thought it wasn't supported (i've tried it though :). Tested with django 1.5.4 / postgresql_psycopg2
There are also a couple of stack overflow questions related to this: http://stackoverflow.com/questions/12317562/trying-to-set-django-and- postgresql-on-heroku http://stackoverflow.com/questions/10829464/postgresql-and-django-unix- domain-socket [1] https://docs.djangoproject.com/en/dev/ref/settings/#host -- Ticket URL: <https://code.djangoproject.com/ticket/21296> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/046.bb1130662949d2f86156a8f60a66c7fc%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.