Python

A collection of 179 articles

  • #Python
  • #Django
  • #email

Testing Email Designs - Building SaaS #86

In this episode, I worked on the sign up confirmation email design. We customized the template and used MailHog to test the flow and see how the email appeared. After working on the email design, we switched to the landing page of the site to work on the pricing information.

  • #Python
  • #Django
  • #static

Serving Static Files

In this Understand Django article, we’ll examine static files. Static files are critical to apps, but have little to do with Python code. We’ll see what they are and what they do.

  • #Python
  • #Django
  • #documentation

Customer Docs - Building SaaS #85

In this episode, I integrated customer documentation into the app. I showed how to build Sphinx documentation into a Django project, then created a help view to link to the docs. Finally, I added documentation building to the deployment process.

  • #Python
  • #Django
  • #logic

Refactoring Enrollment - Building SaaS #84

In this episode, I decided to redesign a portion of the application flow. I wasn’t pleased with how users would enroll students for their grades so I refactored the school year page into a flow that worked better.

  • #Python
  • #Django
  • #templates

Empty States - Building SaaS #83

In this episode, I returned to the onboarding flow and start to polish some of the extra pages. We filled the pages with special copy and a call to action to each page to help customers be successful.

  • #Python
  • #Django
  • #middleware

Middleware Do You Go?

The topic for this Understand Django article is middleware. We’ll see what middleware is, what it is used for in a Django project, and how to write your own.

  • #Python
  • #Django
  • #templates

Customer Feedback - Building SaaS #82

In this episode, I worked on feedback from my primary customer. We fixed a couple of issues that she reported, then moved on to more of the onboarding flow.

  • #Python
  • #Django
  • #Tailwind
  • #Heroku

How To Set Up Tailwind CSS In Django On Heroku

In this quick article, I showed how I set up Tailwind CSS for my Django app on Heroku.

  • #Python
  • #Django
  • #templates

Finishing Onboarding - Building SaaS #81

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.

  • #Python
  • #Django
  • #auth

Episode 10 - User Auth

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.

  • #Python
  • #Django
  • #views

Reordering Models - Building SaaS #80

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.

  • #Python
  • #Django
  • #Hugo
  • #WhiteNoise
  • #Gunicorn

Make A Hugo Static Blog Inside A Django App

Without using a subdomain, Django’s static files, or a reverse proxy, can you build a statically generated blog into your Django app? Yes! I’ll show you how I created a static blog in Hugo and added it to my Django project.

  • #Python
  • #Django
  • #templates

WhiteNoise Shenanigans - Building SaaS #79

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.

  • #Python
  • #Django
  • #templates

Create A Form Template - Building SaaS #78

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.

  • #Python
  • #Django
  • #authentication
  • #authorization

User Authentication

Our focus in this Understand Django article is how to manage users in your Django application. We’ll study Django’s built-in user authentication system.

  • #Python
  • #Django
  • #forms

Sending Invites - Building SaaS #77

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.

  • #Python
  • #Django
  • #applications

Episode 9 - Application Examination

On this episode, we will study the structure of a Django application. Applications are the core components that make up a Django project.

  • #Python
  • #Django
  • #design

Capped Social Network - Building SaaS #76

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.