mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 17:09:59 +03:00
docs: add the import for caching
This commit is contained in:
parent
12e9d40ed8
commit
2cfcf8ebec
|
@ -17,6 +17,10 @@ other cache decorators such as [`cache_page`][page] and
|
||||||
[`vary_on_cookie`][cookie].
|
[`vary_on_cookie`][cookie].
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
from django.utils.decorators import method_decorator
|
||||||
|
from django.views.decorators.cache import cache_page
|
||||||
|
from django.views.decorators.vary import vary_on_cookie
|
||||||
|
|
||||||
from rest_framework.response import Response
|
from rest_framework.response import Response
|
||||||
from rest_framework.views import APIView
|
from rest_framework.views import APIView
|
||||||
from rest_framework import viewsets
|
from rest_framework import viewsets
|
||||||
|
|
Loading…
Reference in New Issue
Block a user