26.5.3 Development
While some of the changes in this section will make our website really fast, they also complicate development quite a bit. In this section, we turn them off and replace them with development-friendly tools that mimic these tools.
To start, in Example 26.45, we replace the global local memory cache with a dummy cache. A dummy cache will make it look like there is a cache but still always results in computation.
suorganizer/settings.py
in eb97deeb6a
94 CACHES = { 95 'default': { 96 'BACKEND': 'django.core.cache.backends.dummy.DummyCache', 97 } 98 } 99 CACHE_MIDDLEWARE_ALIAS = 'default'
We then want to make sure our templates are always loaded: ...
Get Django Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.