mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
Updated docs
This commit is contained in:
parent
0400834a33
commit
5e3140a435
|
@ -221,7 +221,7 @@ You may pass `None` in order to exclude the view from schema generation.
|
||||||
|
|
||||||
When using Django 4.1 and above, REST framework allows you to work with async class based and function based views.
|
When using Django 4.1 and above, REST framework allows you to work with async class based and function based views.
|
||||||
|
|
||||||
For class based view, the view needs the handler methods such as `.get()`, `.post()`, `put()`, `patch()` and `.delete()` to be all async otherwise Django will raise an exception. For function based view the view needs to be async.
|
For class based view, the view needs the handler methods such as `.get()`, `.post()`, `put()`, `patch()` and `.delete()` to be all async otherwise Django will raise an exception. For function based view, the view needs to be async.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user