I was going through the documentation for Django's ALLOWED_HOSTS here
I came across a string ['localhost', '127.0.0.1', '[::1]'] in the ALLOWED_HOSTS.
Everything looks fine except the '[::1]' part.
I can't find a realtime scenario where '[::1]' is used.
Can someone please explain in which use case we will use this [::1]
[::1] is the loopback address in ipv6, the equivalent would be 127.0.0.1 in ipv4.
I know ::1 is normally used for IPv6 as localhost
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With