Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Python 3.5 supported and working with Postgresql?

I've searched all over Google trying to find out if I can use a Django 1.9 stack with Python 3.5 and using Postgresql. I wanted to verify this beforehand since I have already tried to go down that road with MySQL, but unfortunately that is yet to be supported, at least with a Windows development environment.

Can anybody confirm they have gotten this setup working?

like image 936
Chris Hawkes Avatar asked Mar 14 '23 19:03

Chris Hawkes


1 Answers

Django officially mentions it's compatible with Python 3.5 and has been since version 1.8 (see release notes here).

Pyscopg2 is required to get Python/Django to work with PostgreSQL. Although their website says they only support up to Python 3.4, there's nothing stopping you from using Python 3.5. Since you mentioned you're working in Windows, you can find the latest version of pyscopg2 compiled and ready to use with Python 3.5 here.

Anecdotally, I currently have a project running Django 1.9 in a Python 3.5 environment with PostgreSQL and it works fine, I'm on OS X.

like image 154
Chris Avatar answered Mar 25 '23 03:03

Chris