Python - How to import 'cache_page' -- django

Import cache_page

To import cache_page, Add the following line to the top of your code.

from django.views.decorators.cache import cache_page

 

For more information about cache_page:
django cache_page