यहां जिस विशेष कीवर्ड की आवश्यकता है वह है host :
DATABASE_URL=postgres://user:example@sqldat.com/dbname?host=/path/to/db
ध्यान दें कि host . में पथ पथ होना चाहिए, सॉकेट फ़ाइल नहीं (psycopg2 मानता है कि सॉकेट में मानक नामकरण परंपरा है .s.PGSQL.5432 )
https://docs.sqlalchemy.org/en /latest/dialects/postgresql.html#unix-domain-connections