17 lines
475 B
Python
17 lines
475 B
Python
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/" )
|