django-planet

Blog: Matt Layman

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

Finishing Onboarding - Building SaaS #81

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

In this episode, I completed the last form that completes the last step on my Django app’s onboarding process. We built up the view, wrote the tests, and worked through the templates changes. I started with a discussion of what the onboarding flow does and what was left. I needed to make a form that creates a task for a course. For the first chunk of code, we added some tests to cover all the scenarios that are important for the view.

Read More

Episode 10 - User Auth

Nov. 24, 2020 » Django on Matt Layman » [Archived Version]

On this episode, we’re going to look at working with users in a Django project. We’ll see Django’s tools for identifying users and checking what those users are permitted to do on your website. Listen at djangoriffs.com. Last Episode On the last episode, I explained the structure of Django application. We also talked why this structure is significant and how Django apps benefit the Django ecosystem as a tool for sharing code.

Read More

Reordering Models - Building SaaS #80

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

In this episode, we looked at an UpdateView for the GradeLevel model in the homeschool application. Along the way, I had to display some UI elements on the grade to give users the ability to adjust the ordering of courses within their grade level. We started by adding the icon link that I wanted to use to give users access to the edit page. Once the link was in place, I created the URL and copied an existing view as a starting point for the UpdateView.

Read More

Make A Hugo Static Blog Inside A Django App

Nov. 16, 2020 » Django on Matt Layman » [Archived Version]

I have a side project and I’d like to do some content marketing to potential customers to show how my product is useful. To do this, I need a blog for my project. Maybe you need a blog for your project too. Have you thought about where your blog will exist on the internet? For me, I considered two choices: Use a subdomain like blog.mysite.com. Use a route style like mysite.

Read More

WhiteNoise Shenanigans - Building SaaS #79

Nov. 12, 2020 » Django on Matt Layman » [Archived Version]

In this episode, I worked on a method of adding static content to a site that didn’t involve the staticfiles directory, a separate domain, or a reverse proxy like Nginx. We had to get clever with Heroku buildpacks and how to configure WhiteNoise. I want to put a blog on my side project for content marketing purposes. I want the blog to be statically generated and have content come from Markdown (just like these show notes that you’re currently reading).

Read More

Create A Form Template - Building SaaS #78

Nov. 5, 2020 » Django on Matt Layman » [Archived Version]

In this episode, I created a template for one of my new forms on the new social media app that I’m building. We talked about context data, template styling, and special considerations for forms in templates. I had an empty template for the invite sending form to begin. I filled in a first attempt at the template with a header and displaying form errors. While building that, I added some context information that was needed for the display.

Read More

User Authentication

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

In the previous Understand Django article, we learned about the structure of a Django application and how apps are the core components of a Django project. In this article, we’re going to dig into Django’s built-in user authentication system. We’ll see how Django makes your life easier by giving you tools to help your web application interact with the users of your site. From Browser To DjangoURLs Lead The WayViews On ViewsTemplates For User InterfacesUser Interaction With For…

Read More

Sending Invites - Building SaaS #77

Oct. 29, 2020 » Django on Matt Layman » [Archived Version]

In this episode, I worked on the form that will send invites to users for the new social network app that I’m building. We built the view, the form, and the tests and wired a button to the new view. The first thing that we do was talk through the new changes since the last stream. After discussing the progress, I took some time to cover the expected budget for the application to get it to an MVP.

Read More

Episode 9 - Application Examination

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

On this episode, we will study the structure of a Django application. Applications are the core components that make up a Django project. Listen at djangoriffs.com. Last Episode On the last episode, we focused on the built-in Django administrator’s site. We’ll saw what it is, how you can configure it, and how you can customize it to serve your needs. What Is An Application? In Django parlance, a “web application” is a Django project.

Read More

Capped Social Network - Building SaaS #76

Oct. 15, 2020 » Django on Matt Layman » [Archived Version]

In this episode, I started a new project to build a different kind of social network. This social network will contain a max number of connections to encourage thoughtful choice when growing your personal network. We talked MVP features and put in the basics of a Django app. I had a wild thought to build a social network with a capped number of connection in the hope that users would choose their connections based on people that they really care about.

Read More