templates

A collection of 15 articles

  • #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
  • #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
  • #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
  • #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
  • #templates

Make A Landing Page - Building SaaS #75

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.

  • #Python
  • #Django
  • #templates

Check Web App Security With Bandit - Building SaaS #74

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.

  • #Python
  • #Django
  • #templates

Dynamically Regrouping QuerySets In Templates - Building SaaS #73

In this episode, we worked on a new view to display course resources. While building out the template, I used some template tags to dynamically regroup a queryset into a more useful data format for rendering.

  • #Python
  • #Django
  • #templates

Enrolling Students - Building SaaS #64

In this episode, we worked on a view to enroll students into a grade level for the school year. I added all the context data and used Tailwind to design the form layout to pick from a list of available grade levels. We added a variety of unit tests to prove the correctness.

  • #Python
  • #Django
  • #templates

Bread and Butter Django - Building SaaS #58

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.

  • #Python
  • #Django
  • #templates

Episode 4 - Building User Interfaces

On this episode, we look at templates, the primary tool that Django provides to build user interfaces in your Django app.

  • #Python
  • #Django
  • #templates

Templates For User Interfaces

When your Django application sends back a response with your user interface, templates are the tool you’ll use to produce that user interface. This article looks at what templates are and how to use them.

  • #Python
  • #Django
  • #templates

Templates and Logic - Building SaaS #45

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.

  • #Django
  • #Tailwind
  • #templates

Use Tailwind On A Template - Building SaaS #43

In this episode, we worked on the template styles of a tabular view. We also made some context data adjustments to include header rows and column highlighting.

  • #Django
  • #Tailwind
  • #templates

Add Styles To Templates - Building SaaS #42

In this episode, I added a CSS framework, Tailwind CSS. After working through some issues with the log out feature, we started to style the base template of the site.