- 博客(4)
- 问答 (1)
- 收藏
- 关注
原创 Django :验证码
如果使用Django 自带的csrf_token其实是不安全的,因为它实际上就是在HTML中嵌入一个hidden input,我把它复制下来照样也可以跨站请求,所以我们就需要更加安全的机制,验证码。 代码效果: (图中蓝色高亮的部分就是csrf_token的实际代码) 以下为具体的实现步骤: 1,准备验证码图片 在views.py中添加如下代码:from django.http imp
2017-11-29 17:16:26 583
原创 setTimeout:pop a window
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale
2017-11-05 12:44:32 371
原创 responsive layout in css
In this demo,first there will be 4 gold block ,when you shrink the width of the window,it will be 2 gold blocks per line and the 1 gold block per line;<!doctype html><html lang="en"><head> <meta
2017-11-04 16:50:06 432
原创 picture_info demo of transition in css
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale
2017-11-04 11:48:23 338
空空如也
python使用pygal报错:
2017-08-05
TA创建的收藏夹 TA关注的收藏夹
TA关注的人