βοΈ π π Summer of Django π π βοΈ
Posted on Jun 21st, 2021
Youβve now seen how to handle data in a Django application with basic operations in these CRUD categories:
- Create - when we add a new model instance to the database
- Read - when we query the database to look up existing data
- Update - when we query the database to find existing data so we can change it
- Destroy - when we find existing data in the database and delete it
At the heart of many web applications youβll find variations on this theme, so weβll continue to practice it.
Today weβll add in another essential part of web applications: user registration and login.
π Django Music Project Review
- What was one AHA! π² moment you had?
- What did you spend the most time β²οΈ on?
- What is something that youβd like to understand better π?
π― Project: Freeshelf
This is a 3-day assignment that youβll work on all week. It is due on Thursday, June 24.
Groups for this week
groups=[
['Shaune', 'Emily', 'Brian', 'Roan'],
['Robert', 'Quinten', 'Greg', 'Dee'],
['Wendy', 'Sara', 'Logan']
]
π Resources
- django-registration-redux
- Python dependency management overview -> good read to understand
pip
,pyenv
, andpipenv
better - Django docs: Authentication in Web Requests ->
django-registation-redux
handles some of this for us (giving us the login and logout urls, for instance) but itβs helpful to see other ways you can use the authenticated user. - RealPython: What is a decorator?
- π₯ Django Cheatsheet!
- Django Best Practices: Custom User Model
- Django docs: Specifying a Custom User Model