Skip to main content


2 posts about PYTHON

Installing both Python 2 and 3 in the same computer

I was wondering if I can have both Python 2 and 3 on Windows. To solve this problem I have followed some simple steps. Windows Install Python 2 Add c:\Python2 path on the path of your environment variables Rename python.exe as python2.exe Install Python 3 Add c:\Python3 path on the path of your environment varia... [...]

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... [...]