自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Darkman_EX的博客

Python菜鸟入门

  • 博客(7)
  • 收藏
  • 关注

原创 flask表单报错:"No application found. Either work inside a view function or push an application context"

flask 导入表单时报错:“RuntimeError: No application found. Either work inside a view function or push an application context.”报错详情:Traceback (most recent call last): File "F:\Projects\flask_env\lib\site-p...

2018-12-27 16:21:06 3552

原创 python flask表单提交:form.validate_on_submit() 验证为False

flask表单提交:form.validate_on_submit() 验证为False表单修改之前<form role="form" method="POST"> {{ csrf_token }} <div class="box-body"

2018-12-26 14:12:03 3821

原创 flask报错:“Exception: Unexpected end of template. Jinja was looking for the following tags: 'endfor' ”

flask报错:“Exception: Unexpected end of template. Jinja was looking for the following tags: ‘endfor’ ”报错详情:Exception: Unexpected end of template. Jinja was looking for the following tags: 'endfor' or ...

2018-12-26 12:39:40 4228 3

原创 flask使用form表单报错:“KeyError: 'A secret key is required to use CSRF.'”

flask使用form表单报错:“KeyError: ‘A secret key is required to use CSRF.’”报错详情:KeyError: 'A secret key is required to use CSRF.'Traceback (most recent call last)FFile "F:\Projects\flask_env\lib\site-pac...

2018-12-24 14:23:50 4716

原创 报错:“AssertionError: View function mapping is overwriting an existing endpoint function”

报错:“AssertionError: View function mapping is overwriting an existing endpoint function”报错详情:Traceback (most recent call last): File "F:/Projects/movie/manage.py", line 5, in <module> app...

2018-12-23 19:52:21 6472 1

原创 mysql报错:“DataError: (pymysql.err.DataError) (1406, "Data too long for column 'pwd' at row 1”

mysql插入数据报错:“DataError: (pymysql.err.DataError) (1406, "Data too long for column ‘pwd’ at row 1”报错详情:数据model的定义:报错原因:字段的长度不够存放数据解决方案:就是更改pwd字段的max_length 的长度,即可解决问题...

2018-12-22 16:44:26 5233 3

原创 pymysql.err.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: NO)

报错“pymysql.err.OperationalError: (1045, "Access denied for user ‘root’@‘localhost’ (using password: NO)”原因:(1)连接数据时,password没有输入正确(2)连接时指定的DB库名错误解决方式:(1)需要确认一下链接数据库的密码是否正确,通过cmd的代码“mysql -u root -p...

2018-12-22 01:43:37 55942

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除