Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Exception Value:
- 'str' object has no attribute 'get'
- Exception Location: D:Devecommercesrcecommerceviews.py in
- register_page, line 40
- def register_page(request):
- signup_form = RegisterForm(request.POST or None)
- context = {"signup_form": signup_form}
- if signup_form.is_valid():
- print(signup_form.cleaned_data)
- username = signup_form.cleaned_data.get("username")
- email = signup_form.cleaned_data.get("email")
- password = signup_form.cleaned_data.get("password")
- new_user = user.objects.create_user(username, email, password)
- print(new_user)
- return render(request, "auth/signup.html", context)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement