django
林永奇
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
linux
ubuntu使用xshell教程(1):apt-get install openssh-serverssh ip 就可以了原创 2021-02-06 15:10:24 · 160 阅读 · 1 评论 -
入门django----ajax
from django.shortcuts import render, HttpResponsefrom app import modelsfrom django.http import JsonResponseCreate your views here.def register(request):if request.method == ‘POST’:username = req...原创 2019-03-11 12:21:32 · 172 阅读 · 0 评论 -
django---cookie解析
from app import modelsCreate your views here.def success(request):username=request.COOKIES.get(‘name’)pwd=request.COOKIES.get(‘pwd’)user_list = models.User.objects.filter(name=username, pwd=pwd)...原创 2019-03-11 12:23:43 · 342 阅读 · 0 评论 -
django-url反向代理
Title点我进index2from django.urls import path,include,re_pathfrom app import viewsurlpatterns = [re_path(r'^index/$',views.index,),re_path(r'^index2/$',views.index2,name='aa')]f...原创 2019-03-11 12:31:42 · 567 阅读 · 0 评论 -
视图类
from django.shortcuts import render, HttpResponsefrom app import modelsCreate your views here.from django.views import Viewclass Login(View):def get(self, request):return render(request, ‘login....原创 2019-03-11 12:33:15 · 245 阅读 · 0 评论 -
python---互亿--短信验证
**import requests** #引入此模块url = "http://106.ihuyi.com/webservice/sms.php?method=Submit" #请求地址mobile='此处填注册的手机号码' #注意是字符串类型account="此处填APIID"password="此处填APIKEY"header = {'Content-ty..原创 2019-03-12 21:18:47 · 306 阅读 · 0 评论
分享