django-planet

Feed: Django on Matt Layman

Recent content in Django on Matt Layman

Blog Matt Layman
RSS 2.0 Feed Django on Matt Layman
web https://www.mattlayman.com/tags/django/
Last Update11.22.2024
Posts336

The Home Stretch - Building SaaS #63

July 2, 2020 » Django on Matt Layman » [Archived Version]

In this episode, we return to the homeschool application that I’m building. I’m in the final stretch of changes that need to happen to make the product minimally viable. We worked on a template, wrote some model methods, and did a bunch of automated testing. We started by adding students to the context of the students index page. With the students in the context, we updated the index page to display the list of students.

Read More

Episode 6 - Where Does the Data Go?

June 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

Hackathon App Part 2 - Building SaaS #62

June 26, 2020 » Django on Matt Layman » [Archived Version]

In this episode, we took a break from the regular app to work on an app for a local hackathon that I’m participating in. This is the second week for the hackathon and in this stream, I apply the final touches to the application. We work on models, a template, and build an RSS feed using Django syndication contrib app. The final presentation for the app was the next day so it was crunch time to finish everything off.

Read More

Store Data With Models

June 25, 2020 » Django on Matt Layman » [Archived Version]

In the previous Understand Django article, we encountered forms and how forms allow your application to receive data from users who use your site. In this article, you’ll see how to take that data and store it into a database so that your application can use that data or display it later. From Browser To DjangoURLs Lead The WayViews On ViewsTemplates For User InterfacesUser Interaction With FormsStore Data With ModelsAdminister All The ThingsAnatomy Of An ApplicationUser AuthenticationMid…

Read More

Hackathon App - Building SaaS #61

June 18, 2020 » Django on Matt Layman » [Archived Version]

In this episode, we took a break from the regular app to work on an app for a local hackathon that I’m participating in. My team is building a mobile web app for the homeless around Frederick, MD. In this stream, we cranked through some modeling, admin building, a couple of pages, tests, and templates! We got a lot done! The virtual hackathon running in Frederick is split into multiple teams serving three different community groups around Frederick county.

Read More

A View From Start To Finish - Building SaaS #60

June 11, 2020 » Django on Matt Layman » [Archived Version]

In this episode, I created a view to add students from beginning to the end. I used Error Driven Development to guide what I needed to do next to make the view, then wrote tests, and finished it all off by writing the template code. At the start of the episode, I gave a quick overview of the models in my application and which models I planned to focus on for the stream.

Read More

Designing A View - Building SaaS #59

June 4, 2020 » Django on Matt Layman » [Archived Version]

In this episode, I focused on a single view for adding a course to a school year. This view is reusing a form class from a different part of the app and sharing a template. We worked through the details of making a clear CreateView. The stream started with me answering a question about how I design a new feature. I outlined all the things that I think through for the different kinds of features that I need to build.

Read More

Bread and Butter Django - Building SaaS #58

May 28, 2020 » Django on Matt Layman » [Archived Version]

In this episode, I worked on a views and templates. There are a number of core pages that are required to flesh out the minimal interface for the app. We’re building them. I began by showing the page that we were going to work on. I outlined the changes I planned to make, then we started. The first thing we added was data about the school year, the main model on display in the page.

Read More

Switch A Django Project To Use Pytest - Building SaaS #57

May 21, 2020 » Django on Matt Layman » [Archived Version]

In this episode, I replaced the default Django test runner to use pytest. We walked through installation, configuration, how to change tests, and the benefits that come from using pytest. We started by looking at the current state of the test suite to provide a baseline to compare against. After that, I went to PyPI to find the version of pytest-django that we wanted to install. I added the package to my requirements-dev.

Read More

How To Fix A Bug - Building SaaS #56

May 14, 2020 » Django on Matt Layman » [Archived Version]

In this episode, we picked an issue from GitHub and worked on it. I explained the flow of using test driven development to show how the bug existed in an automated test. We wrote the test, then fixed the code. After that, we did some test refactoring to clean things up. We looked at what the issue was and how it is related to the handling of the Course model in a weekly view in the app.

Read More