Skip to content

Instantly share code, notes, and snippets.

@FatihZor
Created March 25, 2017 15:54
Python 2.7 PostgreSQL Bağlantısı
import psycopg2
try:
conn = psycopg2.connect("dbname='dbtest' user='postgres' host='localhost' password='admin'")
except:
print "I am unable to connect to the database"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment