2019-01-27 13:26:29 +00:00
|
|
|
from django.http import HttpResponse
|
|
|
|
|
|
|
|
|
|
|
|
# Create your views here.
|
|
|
|
|
|
|
|
def index(request):
|
2019-01-27 14:34:50 +00:00
|
|
|
back_to_url = ""
|
|
|
|
if "back_to" in request.GET:
|
|
|
|
back_to_url = request.GET["back_to"]
|
|
|
|
if back_to_url != "":
|
|
|
|
return HttpResponse(
|
|
|
|
"""Sorry, <a href="{domain}">this part of domain</a> is not reachable by IPv4.
|
|
|
|
Please upgrade to IPv6 and try to reach {domain} again.""".format(
|
|
|
|
domain=back_to_url
|
|
|
|
)
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
return HttpResponse(
|
|
|
|
"""Sorry, this part of domain is not reachable by IPv4.
|
|
|
|
Please upgrade to IPv6 and try to reach the domain again."""
|
2019-01-27 13:26:29 +00:00
|
|
|
)
|