Skip to main content

1 posts about PYTHON

Connecting to a PostgreSQL database with Python

I have used psycopg2 to connect the database and a little trick to switch the schema from development to production and viceversa. I have used an ini file to store informations about the database. You can store any other informations in the file and keeping them tidy using the ini sections. Let's start with my config.ini fil......

I am tracking this website anonymously to improve the quality and monitor the network traffic.