python代码本地运行不报错,上传服务器后报错???

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiaohuya123/article/details/84033170

本地运行是成功的,代码也更新了,但在服务器上运行代码就报错了,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文件中,包含的一个函数中的路径是本地的路径,要改成在服务器端上对应的地址。。。-_-||尽管我当时并没有运行那个函数。坑啊。。。。

猜你喜欢

转载自blog.csdn.net/xiaohuya123/article/details/84033170