码迷,mamicode.com
首页 >  
搜索关键字:django form    ( 37053个结果
flask模板语法
引子: flask模板语言通过插件 jinja2 来支持,使用方法和django基本一致 代码: python代码 # -*- coding: utf-8 -*- from flask import Flask,render_template,Markup app=Flask(__name__) " ...
分类:其他好文   时间:2021-02-02 11:28:57    阅读次数:0
flask的模版语法
引子: flask的模版语法需要jinja2的支持,不像django内置,但2者的语法基本一致,只是有写不一样的地方 和django模版相同与不同之处: 1 视图函数中和django基本一致 def detail(id): """ flask 不像django 不支持正则 用这种方法来传值 也可以直 ...
分类:其他好文   时间:2021-02-02 10:32:06    阅读次数:0
django自带的用户管理系统
django自带的用户管理系统 1.什么是django自带的用户系统? Django内置了Auth认证系统,整个Auth系统可以分为三大部分,用户信息,用户权限和用户组,在数据库中分别对应auth_user,auth_permission和auth_group 2.还系统有什么优势 默认实现了用户的 ...
分类:其他好文   时间:2021-01-30 12:06:38    阅读次数:0
Django引入static的问题
在项目中建的app中可直接新建templates文件,跟static文件 此时,不用设置settings,然后 在html中引入 <link rel="stylesheet" href="{% static 'css/index.css' %}"> <script src="{% static 'j ...
分类:其他好文   时间:2021-01-30 12:02:56    阅读次数:0
django限流全局和单个视图
全局匿名和用户节流: # 限流 'DEFAULT_THROTTLE_CLASSES': [ 'rest_framework.throttling.AnonRateThrottle', 'rest_framework.throttling.UserRateThrottle' ], 'DEFAULT_T ...
分类:其他好文   时间:2021-01-30 11:42:33    阅读次数:0
2 jmeter 发送请求
1 发送请求 点击运行按钮发送请求 2 查看结果 红色代表请求失败 请求状态码200并不代表请求成功,企业微信自定义errcode=0表示成功 提示数据格式错误 查看请求,发现可能参数放在form里不行 根据API将请求参数放在路径位置 请求成功 3 查看json提取信息 根据响应内容重新编写提取路 ...
分类:其他好文   时间:2021-01-29 11:46:46    阅读次数:0
项目管理 - Coding Standard
Code Structure 代码结构 命名保持规范,驼峰命名。 Boolean方法,起名要以"is" / "has"开头。 方法名称要是动词。 ...... Design Principles 设计原则 Apply the Single-Responsibility principle to in ...
分类:其他好文   时间:2021-01-28 12:20:52    阅读次数:0
1027 Colors in Mars (20分)
People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, wher ...
分类:其他好文   时间:2021-01-28 12:14:24    阅读次数:0
5. Django-2路由层(URLconf)
URL配置(URLconf)就像Django 所支撑网站的目录。它的本质是URL与要为该URL调用的视图函数之间的映射表;你就是以这种方式告诉Django,对于客户端发来的某个URL调用哪一段逻辑代码对应执行. 简单的路由配置 from django.urls import path,re_path ...
分类:Web程序   时间:2021-01-27 14:03:50    阅读次数:0
lazarus free pascal不支持匿名方法
unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, Unit2; type TMyProc = procedure of obj ...
分类:其他好文   时间:2021-01-27 13:59:43    阅读次数:0
37053条   上一页 1 ... 36 37 38 39 40 ... 3706 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!