from django.shortcuts import render from django.conf import settings from django.http import Http404 def proxy_info(request): if not getattr(settings, 'FEATURE_PLAYTEST_PROXY', False): raise Http404("Proxy service is not available") return render(request, 'proxy/info.html', { 'title': 'Proxy Service' })