Why does Request.build_absolute_uri lead to localhost instead of the real domain?
I have a website deployed on Nginx and built on Django.
The Request.build_absolute_uri link there for some reason leads not to the real domain and ip which is attached to it, but to localhost:8080 of Waitress/gunicorn on which the app is running. Why?
I tried Request.build_absolute_uri and request._current_scheme_host both lead to the localhost.
Now, temporarily I just use the direct path like “domain.com”, but it is not a very convinient decision.