Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- axios.post('/saveBooks/add', {
- name: 'Flavio'
- });
- django
- elif action == 'add':
- formBook = BookForm(request.POST)
- if formBook.is_valid():
- formBook.save()
- return JsonResponse({'success': True})
- else:
- print(request.POST)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement