Momentum logo
Team 12 Classroom

🐻 Welcome to Advanced Back End 🐻

Posted on May 16th, 2022

⚠️ You only need to read this post if you are on the back end team 🐻

🗓️ Today’s Topics

🎯 Project: Habit Tracker

You’ll be working on Habit Tracker this week.

It’s important to read the project requirements thoroughly and to start to think about how you would do this project.

First steps: generate the project skeleton; make sure you are using Postgres; deploy to Heroku; and design your models. Make sure to create a diagram showing model fields and relationships. Talk through with each other how you are thinking about this.

By tomorrow:

  • Your application should be deployed to Heroku.
  • Your models should be functional.
  • You should be able to create habits and associated daily records in the Django shell (I recommend using shell_plus which is available when you have django-extensions installed).

📖 Read | 📺 Watch | 🎧 Listen

These are this week’s required readings, videos, and/or podcasts. Read, watch, or listen, and take notes.

Deployment

Databases & Data Modeling

Debugging

🔖 Resources

👾 Code & Notes

Django Models and Relationships

Posted on May 10th, 2022

🗓️ Today’s Topics

  • Review registration & authentication
  • Model fields
  • Database tables
  • One-to-many (O2M) and Many-to-many (M2M) relationships

🎯 Project

Continue working on Freeshelf, through Goals 3 and 4.

References that we used today:

Model Diagram

🔖 Resources

🦉 Code & Notes

Tags: phase-2 django

🌦️ 🍃 🌸 🌱 Spring of Django 🌦️ 🍃 🌸 🌱

Posted on May 9th, 2022

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. This will allow us to create users for our application, let them log in (and out) and associate data with specific users.

📋 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?
  • 📝 What are three goals that you have set for yourself for this next assignment?

🎯 Project: Django Freeshelf

This is a 3-day assignment that you’ll work on this week. It is due on Thursday Morning, May 12. We will do end-of-phase presentations in the afternoon.

📚 Django Freeshelf

🔖 Resources

Authentication, Registration, and the User Model in Django

🦉 Code & Notes

Getting Used to Working in Django

Posted on May 3rd, 2022

🗓️ Today’s Topics

Today we continue working on our mental model of Django, understanding what it does and how it does it.

  • Django urls & views
  • Django templates
  • Django models and the database
  • Dealing with errors

🎯 Project: Uptact

  • Goal for today is Task #2

🔖 Resources

Databases

🦉 Code & Notes

Tags: phase-2 django