django 常用 import
2024-10-07 13:18:35
from django.shortcuts import HttpResponse, render, redirect
def yimi(request):
#直接返回页面内容
return HttpResponse('fdafdsafsadfsa')
#返回特定的页面
return render(request, 'yimi.html')
#跳转
redirect( 'www.baidu.com' )
最新文章
- MarkDown+LaTex 数学内容编辑样例收集
- 网站添加第三方登陆(PHP版)
- 箭头函数 Arrow Functions/////////////////////zzz
- poj 1845 数论综合
- [百科] - CreatePen()
- Guid 的几种形式
- 阿里云的esc
- Linux Shell编程(5)——shell特殊字符(下)
- 博弈论之Nim
- Jquery 源码学习
- 剖析WPF数据绑定机制
- Jquery 使用Ajax获取后台返回的Json数据后,页面处理
- Lua中字符串库中的几个重点函数
- springboot的jar包
- ajax 提交Dictionary
- Python 数据结构--查找
- https证书的验证过程与生成方法
- 自己在完第一遍STL和Directx 9.0 游戏开发编程基础书后的体会
- Spring ApplicationContext(六)BeanPostProcessor
- 可编辑树Ztree的使用(包括对后台数据库的增删改查)