Momentum logo
Team 1 Classroom

Django Forms, Day 2

Posted on Jun 4th, 2020

Today we’re continuing to work with views and forms. Specifically, we’ll see how to edit models through forms, as well as how to customize the HTML of your forms and add some JavaScript.

Project

This weekend should be a big push for you! You need to have all the forms for your project done, allowing for editing of models and deleting models. At the end of the weekend you should have at a minimum a simple, working version of your project. The UI may not be where you want it, and you might have features to add, but it should be something you can use.

Resources

Tags: django phase-2

Django Views

Posted on Jun 3rd, 2020

Today we’re digging deeper into views and forms. We’ll still be doing plenty with models: remember a view is “a view into the models.”

Project

Today you should start building out the views and forms for your project. By tomorrow, you should be able to add new models (code snippets, card decks, habits) at a minimum.

Videos

Resources

Tags: django phase-2

Django from Scratch

Posted on Jun 1st, 2020

This week, you’ll be building a Django project from scratch. Each day, we’ll dig deeper into the tools you will need.

The current plan is:

  • Monday: creating a new Django project, registration and login, admin
  • Tuesday: model relationships, model queries
  • Wednesday: creating models with forms and views
  • Thursday: Ajax and Django (or review, catchup)

Project

  • Django from Scratch. Clone this project, pick which you’re going to work on, and create a new project. Add registration and login today.

Videos

Resources

Tags: phase-2 django