from django.http import HttpResponse
from django.shortcuts import render
from ipware import get_client_ip
from ipware.utils import is_valid_ipv6


def index(request):
    address = get_client_ip(request)
    if is_valid_ipv6(address[0]):
        return render(request, "home.html", {"ip_address":address[0]})
    else:
        return render(request, "not_ipv6.html", {"ip_address": address[0]})
d242f3a5b2117b047e0af4c4fbec1a609f637e1e
<mask token>

<mask token>


def index(request):
    address = get_client_ip(request)
    if is_valid_ipv6(address[0]):
        return render(request, 'home.html', {'ip_address': address[0]})
    else:
        return render(request, 'not_ipv6.html', {'ip_address': address[0]})

from django.http import HttpResponse
from django.shortcuts import render
from ipware import get_client_ip
from ipware.utils import is_valid_ipv6


def index(request):
    address = get_client_ip(request)
    if is_valid_ipv6(address[0]):
        return render(request, 'home.html', {'ip_address': address[0]})
    else:
        return render(request, 'not_ipv6.html', {'ip_address': address[0]})

from django.http import HttpResponse
from django.shortcuts import render
from ipware import get_client_ip
from ipware.utils import is_valid_ipv6


def index(request):
    address = get_client_ip(request)
    if is_valid_ipv6(address[0]):
        return render(request, "home.html", {"ip_address":address[0]})
    else:
        return render(request, "not_ipv6.html", {"ip_address": address[0]})