Flask网站在本地运行,但在cPanel上返回内部服务器错误

时间:2019-04-06 22:22:58

标签: flask cpanel

正如标题所示,我开发了我的第一个Flask网站,该网站在本地运行,但是当我尝试将其部署在cPanel上时,出现内部服务器错误。我一直在寻找解决方案,但我没有运气。.如果这真是微不足道,我深表歉意,但是我是新手,因此在弄清楚这一点时遇到了麻烦。

我相信我已经在cPanel中正确设置了python应用。.WSGI文件的路径正在工作,并且我已经安装了所需的软件包。.

乘客WSGI文件:

从Ace导入应用程序作为应用程序

错误日志:

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/templating.py", line 86, in _get_source_fast

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/templating.py", line 58, in get_source

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/jinja2/loaders.py", line 113, in load

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/jinja2/environment.py", line 804, in _load_template

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/jinja2/environment.py", line 830, in get_template

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/jinja2/environment.py", line 869, in get_or_select_template

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/templating.py", line 134, in render_template

App 392012 output: File "/home/simmonst/AceSite/Ace.py", line 42, in home

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/templating.py", line 86, in _get_source_fast

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/templating.py", line 58, in get_source

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/jinja2/loaders.py", line 113, in load

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/jinja2/environment.py", line 804, in _load_template

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/jinja2/environment.py", line 830, in get_template

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/jinja2/environment.py", line 869, in get_or_select_template

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/templating.py", line 134, in render_template

App 392012 output: File "/home/simmonst/AceSite/Ace.py", line 42, in home

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request

App 392012 output: File "/home/simmonst/virtualenv/AceSite/2.7/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app

如果还有其他信息可以帮助您,请告诉我!再一次,对不起,如果这不是正确的地方或一个琐碎的问题,我感到抱歉。.我现在迷失了。

0 个答案:

没有答案