python - Django with mysql - get error loading mysqldb module -


(windows server 2008 r2) python 34,

i changed settings.py:

databases = {     'default': {         'engine': 'django.db.backends.mysql',         'name': 'mydatabase',         'user': 'mydatabaseuser',         'password': 'mypassword',         'host': '127.0.0.1',         'port': '5432',     } } 

1) run command:

python manage.py migrate 

i error: error loading mysqldb module django.core.exception error loading mysqldb

2) run command:

 pip install mysql -python 

get "failed building wheel mysql-python microsoft visulal c++ 2010 required unable find vcvarsall.bat

3) visual c++ 2010 installed

i have in system variable path to:c:\python34\scripts;c:\python34;

furthermore success run commands python mysql (create\read\write table)

what else can in order command python manage.py migrate work?

you can use mysqlclient , supports python3 .you can read in django docs.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -