分页 一、Django内置分页 from django.shortcuts import renderfrom django.core.paginator import Paginator, EmptyPage, PageNotAnInteger L = []for i in range(999): ...
分类:
其他好文 时间:
2018-10-19 02:08:55
阅读次数:
129
from app01.models import * from django.shortcuts import HttpResponse ...
分类:
其他好文 时间:
2018-10-05 18:41:10
阅读次数:
161
Q: How to config custom shortcuts? A: Enter the preferences setting window from menu bar "Preferences" and then set the shortcuts, the shortcuts are a ...
分类:
其他好文 时间:
2018-10-01 00:13:07
阅读次数:
188
使用Siri shortcuts语音控制Jenkins任务shortcuts Siri shortcuts新版的iOS12里隐藏着一个重要的功能,通过捷径(shortcuts)这个应用让Siri得到极大扩展,用户通过shortcuts很容易构建自己的自动化流。我们公司在每个下午demo前都要启动Je... ...
分类:
其他好文 时间:
2018-09-30 18:23:43
阅读次数:
297
from django.shortcuts import HttpResponse, render, redirect 1. HttpResponse('OK') --> 把字符串的OK转成二进制,然后按照HTTP响应的格式要求返回 2. render(request, 'login.html') ...
分类:
其他好文 时间:
2018-09-28 20:42:56
阅读次数:
85
1.form表单提交数据的三个数据 1、form标签必须要有action和method属性 2、所有获取用户输入的标签必须有name属性 3、必须有submit按钮 2、Django 三件套 from django.shortcuts import HttpResponse,render,redie ...
分类:
Web程序 时间:
2018-09-26 21:33:11
阅读次数:
391
from django.shortcuts import redirect from django.shortcuts import render from login import models # 获取类才能orm操作库 """ cookie与session解决登录验证 1、models中创建U... ...
分类:
其他好文 时间:
2018-09-18 23:25:45
阅读次数:
178
1.注册一个新的app,创建Xadmin.py from django.conf.urls import url from django.shortcuts import HttpResponse, render class ModelXadmin(object): def __init__(sel ...
分类:
Web程序 时间:
2018-09-14 23:53:50
阅读次数:
254
1 from django.shortcuts import render,HttpResponse 2 3 def upload(request): 4 if request.method == 'GET': 5 return render(request,'upload.html') 6 els ...
分类:
编程语言 时间:
2018-09-09 19:56:10
阅读次数:
168
截取全屏快捷键:print screen 截取当前窗口快捷键:alt+print screen 自定义区域截图的快捷键需要自己设置,设置步骤如下: system settings >keyboard >shortcuts >custom shortcuts >点击屏幕下方的加号,如下设置 Apply ...
分类:
系统相关 时间:
2018-09-09 11:55:41
阅读次数:
184