π Django Search π΅οΈββοΈ
Posted on Nov 15th, 2021
ποΈ Todayβs Topics
- Checking in on Code Snippets and Flashcards progress
- Git collaboration review & questions
- Django review & questions
- Implementing search
- Foreign key recursive relationships
π― Project: Code Snippets | Flashcards
Keep on with your end-of-phase project. Today you should have models that you can use in the shell and in your application and at least a solid start on the CRUD functionality your application needs.
π Resources
Debugging
Foreign Keys
- Django Model Field Reference: Foreign Key
- Django ORM Cookbook: How to include a Self-Referencing ForeignKey in a Model
Models & Queries
- Retrieving Objects You should know how to:
- retrieve all objects with
all()
- retrieve one object with
get()
- retrieve specific objects with
filter()
- retrieve all objects with
- Video: How Model Queries Work in Django
- Lookups that span relationships
- Field Lookups
Implementing Search
- LearnDjango: SearchTutorial Will uses class-based views in this post but you can still follow almost all of his steps and use function-based views.
- MDN: Sending Form Data Scroll down to the section on the
GET
method to see how to include form data as query parameters.