I need connect my Django website to Azure SQL database.I use visual studio. And Python 2.7 for 64 bit.
I use this https://azure.microsoft.com/en-us/documentation/articles/web-sites-python-ptvs-django-sql/ for create database config
DATABASES = {
'default': {
'ENGINE': 'sql_server.pyodbc',
'NAME': 'xxx',
'USER': 'xxx',
'PASSWORD': 'xxx',
'HOST': 'xxx.database.windows.net',
'PORT': '1433',
'OPTIONS': {
'driver': 'SQL Server Native Client 11.0',
'MARS_Connection': 'True',
}
}
}
I installed pips: pyodbc and django-pyodbc-azure - I think that them for 32 bit.
If I run python manage.py syncdb from console - > error:
django.core.exceptions.improperlyconfigured 'sql_server.pyodbc' isn't an available databace backend.
No module named sql_server.pyodbc.base
If I run python-> Django Sync db from visual studio -> error:
Unknown command: 'syncdb'
Type 'manage.py help' for usage.
The Python REPL process has exited
- I don't understand if I can use pyodbc and django-pyodbc-azure for Python 64 bit and it is right for Azure?
- May be it is another problem?
