I'd like to add a few headers to all responses that my Django website returns. Is there a way to do this (besides adding a wrapper to the render
function)?
相关问题
- Angular RxJS mergeMap types
- Django __str__ returned non-string (type NoneType)
- Django & Amazon SES SMTP. Cannot send email
- Django check user group permissions
- Django restrict pages to certain users
相关文章
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
- Is there a size limit for HTTP response headers on
- Profiling Django with PyCharm
- Why doesn't Django enforce my unique_together
- MultiValueDictKeyError in Django admin
- Django/Heroku: FATAL: too many connections for rol
- Is a unicode user agent legal inside an HTTP heade
- Django is sooo slow? errno 32 broken pipe? dcramer
Yes, you should have a look at middlewares.
yourapp/middleware.py
yourproject/settings.py