Changes between Initial Version and Version 1 of Ticket #35098, comment 3
- Timestamp:
- Jan 9, 2024, 2:15:01 PM (10 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35098, comment 3
initial v1 4 4 # Obviously, this is used as a handler for a route in urls.py 5 5 def handle_foo(request: HttpRequest, **kwargs: dict[str, Any]) -> HttpResponse: 6 do_something(json.loads(request.body.decode('utf-8'))['field_i_want']) 6 txt = do_something(json.loads(request.body.decode('utf-8'))['field_i_want']) 7 return JsonResponse({'ok': txt}) 7 8 }}} 8 9