Python 3.5 + Django + PostgreSQL on Windows

1

I'm currently starting a web system project using Python 3.5 and the Django 1.9.1 framework, with the intention of integrating them with a database PostgreSQL 9.5 , all installed on a machine running Windows 10 x64 OS.

The installation of Python and Django performed well using pip, but I could not find the Django PostgreSQL adapter for Python 3.5. Officially an adapter called win-psycopg is maintained (which by its view only supports the Python version 3.4), derived from psycopg2 .

I would like to know if there is any other Django DB connection driver option in Windows for PostgreSQL? or is it possible to force this adapter from version 3.4 to version 3.5?

    
asked by anonymous 02.03.2016 / 23:34

2 answers

1

Adapters that are referring to version 3 will very rarely be incompatible with newer versions.

But if you're running Python 2.X you should look for one for it! I already stated that this version 3.4 adapter should work yes with version 3.5, since there was no update or anything of the sort.

If you want to tinker with NoSQL, I recommend you use SQLite or Python's own open () function, so you'll have greater efficiency and less need for processing power.

In a project I developed from a url shortener ( link ) it is entirely done in flask and sqlite, so I recommend using ! The code is available in github!

    
14.03.2016 / 02:51
0

You can try to force the adapter, but you may have some bugs of version differences (which should be minimal, but they exist) or still test another type of database like sqlite in conjunction with another web framework like the Flask or the Bottle!

If you use these two I've indicated (flask and sqlite or bottle and sqlite) your import should look like this:

import sqlite
from flask import *
    
03.03.2016 / 23:05