SHARE
TWEET

Untitled

a guest Oct 13th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. axios.post('/saveBooks/add', {
  2.     name: 'Flavio'
  3. });
  4.  
  5.  
  6. django
  7. elif action == 'add':
  8.     formBook = BookForm(request.POST)
  9.         if formBook.is_valid():
  10.             formBook.save()
  11.             return JsonResponse({'success': True})
  12.         else:
  13.             print(request.POST)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top