0

CS50W 2020 - Project 2 - Commerce

How come in lecture 3 (https://cs50.harvard.edu/web/2020/notes/3/#django-forms) Django forms are used, but in lecture 4 (like here: https://cs50.harvard.edu/web/2020/notes/4/#users) its back to using regular forms?

How should I know if I should use Django forms or not?

Thank you!

1 Answer 1

0

Because of the 'authenticate' function that comes with Django, the values from the HTML form can be validated with that. But this example in the lecture doesn't show how values can be saved to a model, it just explains a login/logout authentication process using the views and templates.

You must log in to answer this question.