django-planet

Blog: Matt Layman

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

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

Make A Landing Page - Building SaaS #75

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

In this episode, I added a landing page design to the app that I’m building. By using a Tailwind CSS landing page template, I could fit the design in with my existing CSS tools. I showed some available templates that I discovered while researching for Tailwind-based landing pages. Once I found a decent template, I copied the source of sample landing page into my index page template. Since I copy and pasted from the landing page, the initial look was terrible.

Read More

Hijack To Help Customers

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

You have an upset customer with a really thorny problem on your Django-powered website. Your customer used your help ticket system and reported their woe. You’ve done your due diligence and have already checked: The logs from your site show nothing interesting related to the customer’s actions The error tracking system reveals no exceptions from what the customer did The customer’s description doesn’t contain enough info to diagnose the problem fully The experiments in …

Read More

Check Web App Security With Bandit - Building SaaS #74

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

In this episode, I integrated the bandit static analysis tool to do automated security checking of my code before each commit. We talked about pre-commit and how to add in a new hook. After finishing that tool addition, we got deep into Django while removing some messages inserted by django-allauth on sign up. We began by talking about what the bandit tool does and how it works. Once I explained bandit, I focused on the bandit documentation to see how to add the tool.

Read More

Anatomy Of An Application

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

In the previous Understand Django article, we got deep into the Django administrators site. We saw what the site was and how to configure and customize it. In this article, we will examine what goes into an application. Applications are core elements of a Django project. 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