from functools import update_wrapper
from django.views import View as Django_View
class View(Django_View):
@classmethod
def as_view(cls, **initkwargs):
"""Main entry point for a request-response process."""
for key in initkwargs:
if key in cls.http_method_names:
raise TypeError(
'The method name %s is not accepted as a keyword argument '
'to %s().' % (key, cls.__name__)
)
if
Django 异步 视图基类
最新推荐文章于 2024-02-04 16:32:33 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)