chore: Update Navbar component with search form

This commit is contained in:
Sean Morley
2024-07-20 21:39:33 -04:00
parent f44a6a2dfd
commit b3c76b054c
7 changed files with 3 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
from django.http import JsonResponse
from django.middleware.csrf import get_token
def get_csrf_token(request):
csrf_token = get_token(request)
return JsonResponse({'csrfToken': csrf_token})