Created
March 24, 2022 10:53
-
-
Save DanyF-github/ff63349263efaf8b058edad14eb764f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@require_POST | |
@csrf_exempt | |
def status(request): | |
body = json.loads(request.body) | |
with open('status.txt', 'w') as status_file: | |
json.dump(body, status_file) | |
return HttpResponse(status=204) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment