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.WindowsInstall Python 2Add c:\Python2 path on the path of your environment variablesRename python.exe as python2.exeInstall Python 3Add 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... [...]