Django Forms and Authentication

For this task, we will go back to the previous tutorial and add a view for librarians to see checked all checked out books.

https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Authentication#Challenge_yourself

Then we will complete the Forms tutorial:

https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Forms

Adding the librarian view

This is a set of steps to walk through the challenge that is not included in the MDN tutorial.

https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Authentication#Challenge_yourself

Adding the renew form

Now that we have the 'All borrowed view' lets make some forms to support some librarian use cases.

https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Forms

The tutorial shows an equivalent way of building a model-based view. It is not necessary to actually build this equivalent form.

Adding the CRUD views

Continuing with the Forms tutorial, we add three CRUD views:

https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Forms#Generic_editing_views

Congratulations

If you have made it this far, you have seen a lot of the patterns used in developing a Django application. Hopefully you learned some of it along the way as you move into building your own applications from scratch going forward.