adding proxy code
This commit is contained in:
11
proxy/views.py
Normal file
11
proxy/views.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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'
|
||||
})
|
||||
Reference in New Issue
Block a user