20👍
✅
I send the real IP to django by setting a custom header:
proxy_set_header X-Real-IP $remote_addr;
Those headers are available in request.META
- How to have Accent-insensitive filter in django with postgres?
- How can I create a partial search filter in Django REST framework?
- How do I use request.META.get('HTTP_REFERER') within template?
- Django and models with multiple foreign keys
Source:stackexchange.com