I tried to connect django to Azure database using django-pyodbc-azure and made sure that my settings in setting.py are correct. But still got this problem. I heard that this could be caused by some authentication problem but not sure how to solve this.
django.db.utils.Error: ('28000', "[28000] [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'USERNAME'. (18456) (SQLDriverConnect)")
DATABASES = {
'default': {
'ENGINE': 'sql_server.pyodbc',
'NAME': 'SERVER_NAME',
'USER': 'USERNAME',
'PASSWORD': 'PASSWORD',
'HOST': 'SERVER_NAME.database.windows.net',
'PORT': '',
}
}

