使用 eclipse 時發生 django.db.utils.OperationalError: no such table:

因為沒有在正確的路徑上跑, 它找不到 db 檔所以重開了一個但沒有 migrate 就沒有 table,如果發現 db 的位置不對,可已先查看 run–>run configurations --> arguments 默認是如果是 other:workspace 將他改為Default: ${project_loc:/selected project name}(當前 project 的路徑)

Was this article helpful? Votes: 0
Article details:
Published date: 15/03/2020 6:03AM
Last updated: 15/03/2020 6:03AM (Casey - casey.hsu@nuwainfo.com)
Share article: 
Author: Casey (casey.hsu@nuwainfo.com)
Permalink: https://knowledge.nuwainfo.com/kb/714646