Posted on Jul 2nd, 2020
Today we’ll begin our first shared project. This will require more planning, a lot of communication and coordination, and adding on some new git skills that will let us collaborate.
Project: Django Duplex
You will work in a shared repo for this and turn in one application that your team will build together. How you share the work is up to you.
assignment README
github classroom link to assignment
Teams:
Resources
- GitHub Collaboration Docs
- Git in VS Code -> I use git on the command line and that’s how I teach people to use it. But you might like using the integration in VS Code. This is a good place to start, but there are many other extensions that you could use as well.
- Pair Programming Guide -> This template for a pairing session is practical and actionable. There are other resources on this site worth a look as well.
- Django cheat sheet -> This is the same one I posted earlier in the week. If you didn’t see it then, you might be glad to see it now.
- Django Project Template -> This template will give you a django project structured like the same ones you’ve been working with. You’ll still need to run
startaapp
to set up your app.
Slides from class
Videos
Posted on Jul 1st, 2020
Today we’ll continue talking about model relationships and see how to do a data migration.
Homework Review Questions
- If we want to show one particular book in the browser, how does that work in the urls and the views?
- How do forms work in Django? You should be able to talk about form objects and how forms are handled in the views.
- How does Django know if a user is logged in?
- How can you implement books with multiple categories?
Project: FreeShelf Day 3
Your FreeShelf application is due tomorrow morning.
Resources
Videos
Code from class
Posted on Jun 30th, 2020
Today we’re talking about all things models: fields, database tables, ER diagrams, and relationships.
Project
Continue working on Freeshelf.
Resources
Videos
- Morning Access Password: 6m@C8*Aw
- I’m sorry to say that the afternoon video is not available from Zoom.
Posted on Jun 29th, 2020
You’ve now seen how to handle data in a Django application with basic operations in these 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 query the database to find data that we want to delete
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, July 2.
link to assignment invitation
Resources
💥 Django Cheatsheet!
This is a handy reference.
Code from class
Video from class
Posted on Jun 25th, 2020