example-of-crud-in-django-w.../app/libros/views.py
Andros Fenollosa 964053e51c First commit
2021-07-05 15:56:53 +02:00

11 lines
232 B
Python

from django.http import JsonResponse
from django.http import JsonResponse
def ping(request):
data = {"ping": "pong!"}
return JsonResponse(data)
def ping(request):
data = {"ping": "pong!"}
return JsonResponse(data)