six_001
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from django.core.handlers.wsgi import WSGIRequest
|
||||
from django.http import HttpResponseRedirect
|
||||
from django.shortcuts import render
|
||||
from rest_framework.request import Request
|
||||
from rest_framework.viewsets import ViewSet
|
||||
|
||||
|
||||
|
||||
|
||||
class htmlViewSets( ViewSet ):
|
||||
|
||||
|
||||
def home( self, request: WSGIRequest | Request ):
|
||||
""""""
|
||||
return render( request=request, template_name="xiao.html" )
|
||||
# return HttpResponseRedirect( redirect_to="https://www.qq.com/" )
|
||||
Reference in New Issue
Block a user