上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
摘要: 类复习: class Base(object): def __init__(self,val): self.val = val def func(self): self.test() print(self.val) def test(... 阅读全文
posted @ 2017-12-15 08:53 golangav 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 会议 阅读全文
posted @ 2017-12-12 08:45 golangav 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1. 简单实现 通过刷新页面 from django.shortcuts import render from app01 import models # Create your views here. def index(request): time_choice = models.Booking 阅读全文
posted @ 2017-12-11 14:49 golangav 阅读(337) 评论(0) 推荐(0) 编辑
摘要: from django.db import models class UserInfo(models.Model): """ 员工表 """ name = models.CharField(max_length=32) def __str__(self): return self.name clas 阅读全文
posted @ 2017-12-11 08:38 golangav 阅读(253) 评论(1) 推荐(0) 编辑
摘要: 数据库 增加问题 阅读全文
posted @ 2017-12-09 17:01 golangav 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 1. 问题: 此时问卷表新增加的问题是一个form对象 而问卷表中有问题的是多个form对象 前端需要做区分判断 不方便 class QuestionModelForm(ModelForm): class Meta: model = models.Question fields = ["captio 阅读全文
posted @ 2017-12-08 20:34 golangav 阅读(314) 评论(0) 推荐(0) 编辑
摘要: aa 阅读全文
posted @ 2017-12-01 11:22 golangav 阅读(189) 评论(0) 推荐(0) 编辑
摘要: ### 文章详细页 - 个人主页文章链接 /blog/{{ current_user.username }}/articles/{{ article.nid }} - urls url(r'^(?P.*)/articles/(?P\d+)', views.articleDetail) 前端 - 继承个人首页的导航和左边侧栏 - 内容部分重新写 ... 阅读全文
posted @ 2017-11-29 17:50 golangav 阅读(248) 评论(0) 推荐(0) 编辑
摘要: ####个人博客首页 - 路由 - app01 创建urls.py - 主程序url如果匹配到blog开始 就路由到app01的项目中 url(r'^blog/', include('app01.urls')), - 博客路由 #分类 标签 时间 url(r'^(?P.*)/(?Ptag|category|da... 阅读全文
posted @ 2017-11-29 11:50 golangav 阅读(525) 评论(0) 推荐(0) 编辑
摘要: ####博客首页 前端 - 导航条 - 导入bootstrap导航条 - 使用黑白颜色 替换为 - 取消搜索 - 内容居中 替换为 - 取消左方Dropdown - 判断登陆状态 - 用户登陆 显示 用... 阅读全文
posted @ 2017-11-27 22:25 golangav 阅读(323) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页