I have a Django
system that has gunicorn
hosting the dynamic content and nginx
the static, nginx
passing through to gunicorn
as required via a Unix socket.
Every request that requires static content is generating an error like that below. Is this because the request comes from a Unix socket and not via IP? How do I fix this? A Quick "Google" hasn't helped but perhaps I've not found the right question yet :-(.
django.db.utils.IntegrityError: null value in column "ip" violates not-null constraint
DETAIL: Failing row contains (48, 302, GET, /, 2022-05-25 07:51:28.855717+00, f, f, null, , Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KH..., en-GB,en;q=0.9,en-US;q=0.8,mt;q=0.7, null).
Thanks for any suggestions.