Getting Used to Working in Django
Posted on Nov 3rd, 2021
🗓️ 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
When you start your first dev job, you will see a lot of code all at once and will have to be able to read it and understand what it does so that you can modify and add to it.
In this project you will do just that: modify existing code to augment its functionality. This is due Friday morning.
Each person should accept the assignment invitation and work in their own repo, but please work on this assignment with your assigned buddies.
For each part of the assignment, talk over with your buddies how you each think you can accomplish the tasks. Be willing to try things your buddy suggests even if you aren’t sure it’s right! You will learn a lot by seeing what happens (and what doesn’t) when you make changes.
Talking it through will help clarify your understanding of how Django works.
code_buddies = [
('Lila', 'Trent'),
('Zack', 'Jeffrey'),
('James A.', 'James M.'),
('RJ', 'Keanya'),
('Jordyn', 'Janelle'),
('Jason', 'Jonathan', 'Trey'),
]
🔖 Resources
- MDN: Django Introduction
- Official Django documentation
- Django Girls Tutorial
- Django Topic Guide (this is a useful table of contents for the Django docs)
- Pretty Printed Django Videos: Videos 1-10 are the ones specific to Django. There are other videos on related topics; they are useful but not relevant to the material we’re covering right now.
- Django Chat Podcast: How to Learn Django
- MDN Django Docs -> See especially the Intro section
- Pipenv documentation
- Django Debug Toolbar
Databases
- DB Browser for SQLite
- Database Design Tutorial -> This is really an introduction to databases.