We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While registering it is showing error .
The text was updated successfully, but these errors were encountered:
I manage to create users after I change this:
if form.is_valid(): user = form.save(commit=False) user.username = user.username.lower() user.save() login(request, user) return redirect('home') else: messages.error(request, 'An error occurred during registration')
to this: try: if form.is_valid(): user = form.save(commit=False) user.username = user.username.lower() user.save() login(request, user) return redirect('home') else: messages.error( request, 'An error occurred during registration') except Exception as e: messages.error(request, f'an error occurred: {e}')
try: if form.is_valid(): user = form.save(commit=False) user.username = user.username.lower() user.save() login(request, user) return redirect('home') else: messages.error( request, 'An error occurred during registration') except Exception as e: messages.error(request, f'an error occurred: {e}')
Just so you know, you need the correct indentation.
Sorry, something went wrong.
still not resolved, can anyone resolve this issue? getting the following error An error occurred during registration
An error occurred during registration
No branches or pull requests
While registering it is showing error .
The text was updated successfully, but these errors were encountered: