Python: Model django request handlers without known route

This commit is contained in:
Rasmus Wriedt Larsen
2020-12-21 17:38:43 +01:00
parent 004ff38e22
commit d4d6f0ca0c
4 changed files with 21 additions and 2 deletions

View File

@@ -113,5 +113,5 @@ class PossiblyNotRouted(View):
# Even if our analysis can't find a route-setup for this class, we should still
# consider it to be a handle incoming HTTP requests
def get(self, request, possibly_not_routed=42): # $ MISSING: requestHandler routedParameter=possibly_not_routed
def get(self, request, possibly_not_routed=42): # $ requestHandler routedParameter=possibly_not_routed
return HttpResponse('PossiblyNotRouted get: {}'.format(possibly_not_routed)) # $HttpResponse

View File

@@ -24,7 +24,7 @@ class MyBasicViewHandler(View):
class MyCustomViewBaseClass(View):
def post(self, request: HttpRequest): # $ MISSING: requestHandler
def post(self, request: HttpRequest): # $ requestHandler
return HttpResponse("MyCustomViewBaseClass: POST") # $ HttpResponse