1. 程式人生 > >python程式碼本地執行不報錯,上傳伺服器後報錯???

python程式碼本地執行不報錯,上傳伺服器後報錯???

本地執行是成功的,程式碼也更新了,但在伺服器上執行程式碼就報錯了,500 Internal Server ErrorThe server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application

原來,是因為我的view檔案中,包含的一個函式中的路徑是本地的路徑,要改成在伺服器端上對應的地址。。。-_-||儘管我當時並沒有執行那個函式。坑啊。。。。