django-planet

Blog: Matt Layman

web https://www.mattlayman.com/tags/django/
Author

Onboarding - Building SaaS #48

March 19, 2020 » Django on Matt Layman » [Archived Version]

In this episode, we did some design work to plan out the onboarding flow for new users. I spoke through my design process, outlined what a new user will need to do to succeed, wrote down the plan in GitHub issues, then started to implement that flow. I started the stream with a quick fix to the main app view. After that, we started a new project in the app. I needed to design the starting experience for a user.

Read More

Episode 3 - Views On Django

March 6, 2020 » Django on Matt Layman » [Archived Version]

On this episode, we look at views, a major component within Django and a primary place where your code will run. Listen at djangoriffs.com. Last Episode On the previous episode, we talked about URLs and how they describe the main interface that a browser can use to interact with your application. What Is A View? A view is a chunk of code that receives an HTTP request and returns an HTTP response.

Read More

How To Style Sign Up - Building SaaS #47

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

In this episode, I added styling to the Sign Up page of the site. We chatted about CSS tools and frameworks, the benefit of feature flags to control what UI is displayed to users, and how to use Tailwind CSS to modify a design quickly. In the first portion of the stream, we focused on CSS frameworks. We compared Bootstrap, Semantic UI, and Tailwind CSS. After that discussion, I talked about feature flags.

Read More

Views On Views

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

In the previous Understand Django article, I covered URLs and the variety of tools that Django gives us to describe the outside interface to the internet for your project. In this article, we’ll examine the core building block that makes those URLs work: the Django view. From Browser To DjangoURLs Lead The WayViews On ViewsTemplates For User InterfacesUser Interaction With FormsStore Data With ModelsAdminister All The ThingsAnatomy Of An ApplicationUser AuthenticationMiddleware Do You Go?

Read More

A Week At A Time - Building SaaS #46

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

In this episode, we worked on a weekly view for the Django app. We made navigation that would let users click from one week to the next, then fixed up the view to pull time from that particular week. The first thing that I did was focus on the UI required to navigate to a new weekly view in the app. We mocked out the UI and talked briefly about the flexbox layout that is available to modern browsers.

Read More

Templates and Logic - Building SaaS #45

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

In this episode, we added content to a template and talked about the N+1 query bug. I also worked tricky logic involving date handling. The first change was to update a course page to include a new icon for any course task that should be graded. After adding this, we hit an N+1 query bug, which is a performance bug that happens when code queries a database in a loop. We talked about why this happens and how to fix it.

Read More

Django Riffs, a podcast for learning Django

Feb. 6, 2020 » Django on Matt Layman » [Archived Version]

I’ve started a podcast! The podcast is called Django Riffs, and my goal is to help beginners learn how to use Django. You can find the show at djangoriffs.com or check iTunes, Spotify, or wherever you get podcasts. Each episode of the podcast will be a topical exploration of one facet of the Django web framework. With many years of Django under my belt, I believe I have the experience to help beginners on their journey into learning Django.

Read More

Fast Forms With UpdateView - Building SaaS #44

Feb. 6, 2020 » Django on Matt Layman » [Archived Version]

In this episode, we worked on an edit view. We used Django’s generic UpdateView to aid the process and test drove the creation of the view to verify things every step of the way. We worked on a view to make it possible to edit the CourseTask model that are the actions that a student must complete for a course. To complete the form quickly, I took advantage of Django’s ModelForm views.

Read More

Episode 2 - Enter With URLs

Jan. 31, 2020 » Django on Matt Layman » [Archived Version]

On this episode, we discuss Django’s front door, URLs. We talk about what URLs are, how to build them in Django, and the functions Django provides to work with URLs. Listen at djangoriffs.com. What’s a URL? A URL is a Uniform Resource Locator. It is the full address that goes into a browser. Consider https://www.mattlayman.com/django-riffs/. Here are the parts: Scheme, https:// Domain name: Top Level Domain (TLD), com Domain, mattlayman Subdomain, www Path or route, /django-riffs/…

Read More

Episode 1 - Get To Know Django

Jan. 30, 2020 » Django on Matt Layman » [Archived Version]

Welcome to the show notes for the first episode of Django Riffs! Django Riffs is a podcast for learning web application development in Python using the Django web framework. Listen at djangoriffs.com. Who Is This For? This podcast is for absolute Django beginners. No prior knowledge of Django or web development is expected. Experienced users may learn something new or get a good refresher from topics they might have missed in the documentation.

Read More