django-planet

What's new in Django community blogs?

Episode 8 - Administering Your App

Sept. 10, 2020 » Django on Matt Layman » [Archived Version]

On this episode, we will focus on the built-in Django administrator’s site. We’ll see what it is, how you can configure it, and how you can customize it to serve your needs. Listen at djangoriffs.com. Last Episode On the last episode, we explored more about models and how to interact with data in your database. What Is The Django Admin? Django includes a web administrative interface that can help programmers and non-programmers alike.

Read More

Test smarter, not harder

Sept. 4, 2020 » Luke Plant » [Archived Version]

Tips for winning the automated testing battle.

Read More

Custom Form Validation - Building SaaS #71

Sept. 3, 2020 » Django on Matt Layman » [Archived Version]

In this episode, I added some custom checking to ensure that students may only be enrolled in a single grade level for a school year. We talked about form cleaning and wrote a for unit test to prove that the change worked. After that change, we switched to a template and wrote copy for when no progress reports are viewable for users. With the first issue, I needed to update a form that enrolls students.

Read More

Predicting The Future - Building SaaS #70

Aug. 27, 2020 » Django on Matt Layman » [Archived Version]

In this episode, we worked on two issues. The first issue was fixing incorrect projected completion dates of tasks. We used test driven development to reveal the bug and work on the fix. The second issue add some extra data to display on a page. We picked a couple of tasks at random to fix for this stream session. The first issue related to the course view when paired with what the student’s actions.

Read More

Administer All The Things

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 More

Polishing and Usability - Building SaaS #69

Aug. 20, 2020 » Django on Matt Layman » [Archived Version]

In this episode, we polished some parts of the application. Now that my first customer is using the app regularly, the feedback is coming in rapidly. We worked to fix some of the issues that she found. The first issue that I tackled dealt with ambiguity about a course’s relationship to a school year on the course’s detail page. I fixed this issue by displaying the grade level on the course page to provide all the details.

Read More

Announcement: Django Views - The Right Way

Aug. 19, 2020 » Luke Plant » [Archived Version]

Announcement of my guide to writing Django Views.

Read More

Rendering Calendars - Building SaaS #68

Aug. 13, 2020 » Django on Matt Layman » [Archived Version]

In this episode, I worked on rendering a calendar of important events in a school year. We built out the appropriate data structures, and I wrote some new model methods and added tests. On the last stream, I created a new model to track breaks in the school year. The app now shows the calendar for the school year, and I want to display the breaks on the calendar. Before digging too far into the code, I provided my thoughts about using Docker for development from a question that came from the ch…

Read More

Give Me A Break... Day - Building SaaS #67

Aug. 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 More

Understanding Common Table Expressions in SQL

Aug. 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 More