Momentum logo
Team 8 Classroom

Django Models and Relationships

Posted on Jun 22nd, 2021

๐Ÿ—“๏ธ Todayโ€™s Topics

Models!

  • Fields
  • Database tables
  • One-to-many (O2M) and Many-to-many (M2M) relationships
  • ER Diagrams

๐ŸŽฏ Project

Continue working on Freeshelf, through Goal 2 and 3.

๐Ÿ”– Resources

Tags: phase-2 django

โ˜€๏ธ ๐Ÿ– ๐Ÿ‰ 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.

๐Ÿ“š Django Freeshelf

Groups for this week

groups=[
  ['Shaune', 'Emily', 'Brian', 'Roan'],
  ['Robert', 'Quinten', 'Greg', 'Dee'],
  ['Wendy', 'Sara', 'Logan']
]

๐Ÿ”– Resources

๐Ÿฆ‰ Code

Django CRUD

Posted on Jun 18th, 2021

For this weekend assignment, keep working with your code buddies from this week.

๐ŸŽฏ Project

Build a CRUD application from scratch. This app should let you catalog your music collection.

This is due on Monday.

Django Music

groups = [
  ('Quinten', 'Wendy', 'Robert'),
  ('Sara', 'Roan', 'Logan'),
  ('Dee', 'Shaune', 'Emily'),
  ('Brian', 'Greg')
]

๐Ÿ”– Resources

๐Ÿด Django docs

๐Ÿฆ‰ Notes

Tags: phase-2 django

Django - URLs, Forms, and Model Relationships

Posted on Jun 17th, 2021

๐Ÿ—“๏ธ Todayโ€™s Topics

  • More Django for your web development enjoyment
  • URLs
  • Forms
  • Model Relationships

๐ŸŽฏ Project

Continue with the next sections of Uptact.

๐Ÿ”– Resources

๐Ÿด Django docs

๐Ÿฆ‰ Notes

Tags: phase-2 django

More Intro to Django

Posted on Jun 16th, 2021

Today weโ€™ll continue our intro to Django.

๐ŸŽฏ Project

Today weโ€™ll expand our perspective on Django and see more of it in action with a larger application. This project is due Friday morning.

This assignment asks you to modify existing code to augment its functionality. Please work on this assignment in small groups:

groups = [
  ('Quinten', 'Wendy', 'Robert'),
  ('Sara', 'Roan', 'Logan'),
  ('Dee', 'Shaune', 'Emily'),
  ('Brian', 'Greg')
]

Django Uptact

๐Ÿ”– Resources

๐Ÿฆ‰ Code & Notes


Tags: phase-2 django