lightjitender

views.py

Sep 13th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. def emailform(request):
  2. email_form = emailforms(request.POST or None)
  3. if request.POST:
  4. if email_form.is_valid():
  5. email_data = email_form.cleaned_data['email']
  6. s=Userdetails()
  7. s.email=email_form.cleaned_data['email']
  8. s.save()
  9. return render(request,'email_form.html',{'form':email_form})
Add Comment
Please, Sign In to add comment