摘要: from django.contrib import auth from django.contrib.auth.models import User from django.shortcuts import render, redirect, HttpResponse from django.contrib.auth.decorators import login_required # ... 阅读全文
posted @ 2019-07-20 15:48 huikejie 阅读(580) 评论(0) 推荐(0)
摘要: from django import views from django.shortcuts import render,HttpResponse,redirect from django.views import View from functools import wraps #cbv必须要倒的模块 from django.utils.decorators import method_d... 阅读全文
posted @ 2019-07-20 15:32 huikejie 阅读(229) 评论(0) 推荐(0)