Django register form validation for javascript

In Django i followed the form method is the model form i not validate in the backend only validate frontend using javascript but if click the submit button the data is not stored to database how to fix

I tried to submit the data in the database but if I click data is validated but not stored to the database

You need to start by posting the model and the view that is involved. Note, when posting code here, enclose the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your code properly formatted.

You should also post any error messages or any other informational messages that are shown in your console window where you’re running runserver.

Do not post images of code or errors here. Copy/paste the text of the code or messages into the body of your post.

1 Like