Django and Azure SQL key error 'deferrable' when start migrate command

后端 未结 2 1519
我寻月下人不归
我寻月下人不归 2021-01-12 02:20

I try connect django to Azure SQL and have error KeyError: deferrable when i start migrate command. i can\'t find resolution for this issue.

i use this application:

相关标签:
2条回答
  • 2021-01-12 02:57

    django-mssql-backend currently supporting till Django 3.0.10. Temporary fix is downgrade your Django version from Django 3.1.x to 3.0.10.

    bug request raised here: https://github.com/ESSolutions/django-mssql-backend/issues/63

    0 讨论(0)
  • 2021-01-12 03:00

    I ran in to this same issue today. Roll back to Django 3.0.x (I went back to 3.0.6) and then run your migrations.

    I realize that's not a fix, but at least it's a work around to get you going. Once you migrate, you should be able to update back to 3.1 and it will run fine.

    0 讨论(0)
提交回复
热议问题