django
林永奇
这个作者很懒,什么都没留下…
展开
-
linux
ubuntu使用xshell教程 (1):apt-get install openssh-server ssh ip 就可以了原创 2021-02-06 15:10:24 · 125 阅读 · 1 评论 -
入门django----ajax
from django.shortcuts import render, HttpResponse from app import models from django.http import JsonResponse Create your views here. def register(request): if request.method == ‘POST’: username = req...原创 2019-03-11 12:21:32 · 141 阅读 · 0 评论 -
django---cookie解析
from app import models Create 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 · 303 阅读 · 0 评论 -
django-url反向代理
Title 点我进index2 from django.urls import path,include,re_path from app import views urlpatterns = [ re_path(r'^index/$',views.index,), re_path(r'^index2/$',views.index2,name='aa') ] f...原创 2019-03-11 12:31:42 · 523 阅读 · 0 评论 -
视图类
from django.shortcuts import render, HttpResponse from app import models Create your views here. from django.views import View class Login(View): def get(self, request): return render(request, ‘login....原创 2019-03-11 12:33:15 · 163 阅读 · 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 · 274 阅读 · 0 评论