一、项目部署后,打开网页链接,网页出现下面报错:
1.网页链接报错如下:
2. Error log:mengbo.pythonanywhere.com.error.log 报错信心如下:
二、根据错误信息百度搜索如何调试。
根据:
Not Found: /favicon.ico
错误信息提示。
在百度搜到是显示网页图标问题,可以在<head></head>标签中添加如下代码:(可省略制作图标)
<link rel="shortcut icon" href="#"/>
照上面代码修改后还是报错。报错信息如下:
再根据
Not Found: /
错误信息提示。
在百度搜索,未找到符合内容信息。
三、自己项目压缩包及Pythonanywhere网站配置如下:
1、项目压缩包
2Pythonanywhere网站配置如下:
What your site is running.
Source code:/home/mengbo/test9blog Go to directory
Working directory:/home/mengbo/ Go to directory
WSGI configuration file: /var/www/mengbo_pythonanywhere_com_wsgi.py
Python version: 2.7
Use a virtualenv to get different versions of flask, django etc from our default system ones. More info here. You need to Reload your web app to activate it; NB - will do nothing if the virtualenv does not exist.
Start a console in this virtualenv
Files that aren't dynamically generated by your code, like CSS, JavaScript or uploaded files, can be served much faster straight off the disk if you specify them here. You need to Reload your web app to activate any changes you make to the mappings below.
3、
四。问题
上面Bug如何正确调试(建议:如有参考答案,请列出)