会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Cou1d
博客园
首页
新随笔
联系
管理
上一页
1
···
6
7
8
9
10
11
下一页
2020年1月30日
windows 下更换pip源
摘要: https://blog.csdn.net/zhangjunp3/article/details/88310359
阅读全文
posted @ 2020-01-30 12:36 y0um
阅读(368)
评论(0)
推荐(0)
2020年1月18日
Django 使用 modelformset 组件批量修改表单数据
摘要: 1.models.py: class StudentStudyRecord(models.Model): ''' 学生学习记录 ''' student = models.ForeignKey(verbose_name="学员", to='Student',on_delete=models.CASCA
阅读全文
posted @ 2020-01-18 10:38 y0um
阅读(514)
评论(0)
推荐(0)
2019年12月22日
djangoform表单使用验证码
摘要: 8.1.安装captcha 直接安装:pip install django-simple-captcha Django自动帮我们安装了相关的依赖库six、olefile和Pillow,其中的Pillow是大名鼎鼎的绘图模块。 注册captcha 在settings中,将‘captcha’注册到app
阅读全文
posted @ 2019-12-22 10:31 y0um
阅读(561)
评论(0)
推荐(0)
Django+bootstrap+注册登录系统
摘要: 转自:https://www.cnblogs.com/robindong/p/9610057.html Robin_D 博客园 首页 新随笔 联系 订阅 管理 随笔 - 10 文章 - 0 评论 - 5 Django实战-用户注册和登陆系统 1.环境搭建和创建项目 1.环境搭建 每当我们开始一个新项
阅读全文
posted @ 2019-12-22 10:29 y0um
阅读(2716)
评论(0)
推荐(0)
2019年12月20日
django 配置文件settings.py 设置模板
摘要: INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages',
阅读全文
posted @ 2019-12-20 09:50 y0um
阅读(442)
评论(0)
推荐(0)
关于Django auth注册登录模块的具体使用
摘要: 1 from django.urls import path 2 from . import views 3 4 urlpatterns = [ 5 #主页,用来显示类别等其他数据 6 path('',views.index), 7 # 登录 8 path('tologin/',views.tolo
阅读全文
posted @ 2019-12-20 09:48 y0um
阅读(452)
评论(0)
推荐(0)
2019年12月10日
前端BOM对象
摘要: location.href 查看当前的url location.href http://www.baidu.com 跳转URL location.reload 重载当前页面 windows.alert('你好') 弹出提示框 document.body.coneditable=true 可对网页进行
阅读全文
posted @ 2019-12-10 13:08 y0um
阅读(140)
评论(0)
推荐(0)
2019年12月8日
Tornado框架 源码基本分析
摘要: 在python2 的环境中 pip install tornado==1.2.1 1.2.1版本Tornado源码少,利于了解、 1 import tornado.ioloop 2 import tornado.web 3 4 class MainHandler(tornado.web.Reques
阅读全文
posted @ 2019-12-08 12:30 y0um
阅读(234)
评论(0)
推荐(0)
2019年12月6日
Django 使用form组件对文件上传
摘要: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 </head> 7 <body> 8 <form action="/upload/" method="pos
阅读全文
posted @ 2019-12-06 14:41 y0um
阅读(342)
评论(0)
推荐(0)
2019年12月2日
Django 生命周期
摘要: Django 生命周期为: 用户请求发起对url的请求→ wsgiref模块→django中间件→django(视图url对应函数,模型数据库交互,html模版渲染)→django中间件 → wsgiref模块 →用户看到的页面。 from wsgiref.simple_server import
阅读全文
posted @ 2019-12-02 15:47 y0um
阅读(880)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
下一页
公告