from django.http import HttpResponse, JsonResponse
from django.views.decorators.csrf import csrf_exempt


@csrf_exempt
def index(request):
    response = JsonResponse(
        {
            "hello": "world",
            "The answer is": 42
        }
    )
    return response

2bd25a44c1f47db9691c1962b72093200b9d3d11
<mask token>

<mask token>


@csrf_exempt
def index(request):
    response = JsonResponse({'hello': 'world', 'The answer is': 42})
    return response

from django.http import HttpResponse, JsonResponse
from django.views.decorators.csrf import csrf_exempt


@csrf_exempt
def index(request):
    response = JsonResponse({'hello': 'world', 'The answer is': 42})
    return response

from django.http import HttpResponse, JsonResponse
from django.views.decorators.csrf import csrf_exempt


@csrf_exempt
def index(request):
    response = JsonResponse(
        {
            "hello": "world",
            "The answer is": 42
        }
    )
    return response
