Aug. 26, 2020 » Django on Matt Layman » [Archived Version]
In the previous Understand Django article, we used models to see how Django stores data in a relational database. We covered all the tools to bring your data to life in your application. In this article, we will focus on the built-in tools that Django provides to help us manage that data. From Browser To DjangoURLs Lead The WayViews On ViewsTemplates For User InterfacesUser Interaction With FormsStore Data With ModelsAdminister All The ThingsAnatomy Of An ApplicationUser AuthenticationMiddlewar…
Read MoreAug. 19, 2020 » Luke Plant » [Archived Version]
Announcement of my guide to writing Django Views.
Read MoreAug. 6, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we did some Django model development. I created a new model to track break days in a school year. This model will be critical to fill in vacations and holidays so that the scheduling functionality works properly. I added the model, the tests, the admin page, and the create view to create break days in the app. We started by picking a model name and discussing naming in programming.
Read MoreAug. 4, 2020 » Tinker, Tamper, Alter, Fry » [Archived Version]
One of the lesser known features of modern SQL are so-called “Common Table Expressions” (CTE) or “WITH queries”. I’ll explain the mental model that helped me make sense of them, and how to use them to execute recursive queries. Afterwards I’ll show how to apply these techniques in Django.Syntactically a CTE consists of one or […]
Read MoreJuly 21, 2020 » Django on Matt Layman » [Archived Version]
On this episode, we will explore more about models and how to interact with data in your database. Listen at djangoriffs.com. Last Episode On the last episode, we discussed the basics of setting up a database and creating a model to store data. Working With Models To create new rows in our new database tables, we can use a model’s save method. When you save a model instance, Django will send a message to the database that effectively says “add this new data to this database table.
Read MoreJuly 15, 2020 » Django Chat » [Archived Version]
Django Fellow Mariusz Felisiak joins us to discuss the new features in Django 3.1, including async views/middleware/tests, cross-db JSONFields, improved admin, the addition of pathlib, and more.
Read MoreJuly 8, 2020 » Django Chat » [Archived Version]
Aymeric is a longtime Django contributor and member of the Django Technical Board. We discuss his background with Django, contributions to the codebase and docs, multiple open-source projects, and more.
Read MoreJuly 7, 2020 » Django on Matt Layman » [Archived Version]
What are the tools that I use to test a Django app? Let’s find out! You might say I’m test obsessed. I like having very high automated test coverage. This is especially true when I’m working on solo applications. I want the best test safety net that I can have to protect me from myself. We’re going to explore the testing packages that I commonly use on Django projects. We’ll also look at a few of the important techniques that I apply to make my testing experience great.
Read MoreJuly 1, 2020 » Django Chat » [Archived Version]
Adam is a Django Technical Board member, longtime contributor, and author of the new book Speed Up Your Django Tests. We talk all things testing in Django, performance tips, continuous integration, pytest, easy wins, optimal test structure, and more.
Read MoreJune 30, 2020 » Django on Matt Layman » [Archived Version]
On this episode, we will learn about storing data and how Django manages data using models. Listen at djangoriffs.com. Last Episode On the last episode, we saw Django forms and how to interact with users to collect data. Setting Up A relational database is like a collection of spreadsheets. Each spreadsheet is actually called a table. A table has a set of columns to track different pieces of data. Each row in the table would represent a related group.
Read More