Answer the question
In order to leave comments, you need to log in
How to set up a database connection in Django 1.9?
In a bunch of Python 3.4 + Django 1.9 on Windows, it is not possible to connect to the database. Can't get past migrate. crashes with errors.
Tried mysql-connector, django-mysql, mysqlclient, pyodbc, python-pyodbc-azure, django-mssql, sqlserver_ado crashes with various errors.
When using mysql-connector, I created 2 tables in the database and crashed with the error django.db.utils.DatabaseError: Out of range value for column 'applied' at row 1
When using django-mysql, the error django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: DLL load failed: The specified procedure could not be found.
also errors:
django.db.utils.DatabaseError: Out of range value for column 'applied' at row 1
django.db.utils.DatabaseError: Out of range value for column 'applied' at row 1
and also periodically swears at terminos>
Answer the question
In order to leave comments, you need to log in
1) Install Linux. At least in a virtual machine.
2) Postgres is better than MySQL.
3) pymysql + install as mysqldb works if you haven't listened to 2)
Really install any distribution kit. I recommend Debian Based, a lot of docks and answers to any questions.
I have Ubuntu 14.04 running on a virtual machine, where I try my best)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question