django-revproxy icon indicating copy to clipboard operation
django-revproxy copied to clipboard

Random subdomain as upstream or multi upstream domain support

Open Lalmi-Issam opened this issue 2 years ago • 0 comments

I have issue related to static upstream in TestProxyView class i tried the following :

def home(request, path): upstream = request.GET.get('a') return ProxyView.as_view()(upstream)

I got ERROR : dispatch() missing 1 required positional argument: 'path'

Tried also to catch get parameter from request object inside TestProxyView class

class TestProxyView(ProxyView, request): upstream = request.GET.get('a')

I got *ERROR : Name 'request' is undefined

Lalmi-Issam avatar Oct 21 '22 23:10 Lalmi-Issam