12 lines
329 B
Python
12 lines
329 B
Python
from django.shortcuts import render
|
|
|
|
# Create your views here.
|
|
from django.views.decorators.csrf import csrf_exempt
|
|
from .utils.views import proxy_view
|
|
|
|
@csrf_exempt
|
|
def proxy_view(request, path):
|
|
extra_requests_args = {...}
|
|
remoteurl = 'http://<host_name>/' + path
|
|
return proxy_view(request, remoteurl, extra_requests_args)
|
|
|