# settings.py MIDDLEWARE = [ "django.middleware.cache.UpdateCacheMiddleware", # add this middleware "django.middleware.common.CommonMiddleware", "django.middleware.cache.FetchFromCacheMiddleware", # add this middleware ] CACHE_MIDDLEWARE_SECONDS = 60 * 15 # time the cached data should last
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter