Python編程:從入門到實踐 19.3.2 missing 1 required positional argument: 'on_delete'問題

blog:github+hexo的blog連接 github:個人github傳送html 在19.3.2 將數據關聯到用戶這個小節中,須要修改models.py文件,用於將數據關聯到用戶。 但在執行python manage.py makemigrations learning_logs時,會出現錯誤見下圖: 須要將: owner = models.ForeignKey(User) 修改成: o
相關文章
相關標籤/搜索