You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING:request.security.middleware:Bad request: {'ip': ['Este campo no puede estar vacío.']}
I tracked it to be the ip model that is not being filled by IP address.
The function causing the trouble is:
from_http_request()
self.ip = request.META.get('REMOTE_ADDR', '')
def save(self, *args, **kwargs):
if not request_settings.LOG_IP:
self.ip = request_settings.IP_DUMMY
Even when I did set up the LOG_IP and IP_DUMMY I was triggered an error.
Of course I went to NGINX and tweaked some thing but also learned that the solution here is not 100% nice.
I will make some changed and wiil push PR.
Thanks
hvitis
changed the title
Any ideas why it might be not working on production?
Proxy NGINX is not sending REMOTE_ADDR - not working on production.
Jun 28, 2022
I have tried all the possible combinations of adding site (as URL in settings and as domain in Site.objects.get_current().domain)
It is working fine on localhost but after deploying (gunicorn, nginx) it is not logging anything.
Any ideas what I might add / open ?
Thanks
The text was updated successfully, but these errors were encountered: