django.core.exceptions.ValidationError

django.core.exceptions.ValidationError: ["'' value has an invalid date format. It must be in YYYY-MM-DD format."]

 django使用DateField()報錯:

 

解決:

 you have to delete all migrations and erase your database data too and do migrations again

python manage.py makemigrations
python manage.py migrate --fake

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章