You can achieve this using the cache_control decorator. Example from the documentation:
from django.views.decorators.cache import never_cache
@never_cache
def myview(request):
# ...
More Related Contents:
- Caching query results in django
- Proper way to handle multiple forms on one page in Django
- How to use permission_required decorators on django class-based views
- Django: Get list of model fields?
- Applying bootstrap styles to django forms
- Using a UUID as a primary key in Django models (generic relations impact)
- Django ManyToMany filter()
- How do I deal with this race condition in django?
- Limit foreign key choices in select in an inline form in admin
- Django get the static files URL in view
- Confusion in Django admin, static and media files
- What’s the cleanest, simplest-to-get running datepicker in Django?
- Django multi-select widget?
- Using Heroku for Django Media Files
- Where can I find the error logs of nginx, using FastCGI and Django?
- Django’s self.client.login(…) does not work in unit tests
- Django “xxxxxx Object” display customization in admin action sidebar
- How to install libpq-fe.h?
- Django ManyToMany model validation
- Django – Overriding the Model.create() method?
- How to create a Django queryset filter comparing two date fields in the same model
- Multiple images per Model
- Redirect on admin Save
- Effects of changing Django’s SECRET_KEY
- Django Queryset with filtering on reverse foreign key
- How to iterate over nested dictionaries in django templates
- Docker-compose with django could not translate host name “db” to address: Name or service not known
- Django on Google App Engine
- Django static files on heroku
- User groups and permissions