1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-19 12:59:36 +02:00

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})