Python

A collection of 141 articles

  • #Python
  • #Django
  • #tests

Test Your Apps

How do you confirm that your website works? You could click around and check things out yourself, or you can write code to verify the site. I’ll show you why you should prefer the latter. In this Understand Django article, we’ll study automated tests to verify the correctness of your site.

  • #Python
  • #Django
  • #static

Episode 12 - Success With Static Files

On this episode, our focus will be on static files. Static files are vital to your application, but they have little to do with Python code. We’ll see what they are and what they do.

  • #Python
  • #Django
  • #htmx

How To Use Htmx In Django

How do you use htmx (the lightweight JavaScript library that uses HTML markup) in Django? This article shows how and provides an example usage.

  • #Python
  • #Django
  • #usability

UX Polish - Building SaaS #90

In this episode, I worked on more customer requests to refine the user interface. We added a new convenient shortcut button and included additional information and links on the course detail view.

  • #Python
  • #Django
  • #Flask

Are Django and Flask Similar?

If you’re into Python and new to web development, you may have questions about Python’s popular web application packages: Django and Flask. This article compares the two so you can figure out which one might be a better fit for you.

  • #Python
  • #Django
  • #usability

Customer Feature - Building SaaS #89

In this episode, I show you how to take a feature idea from nothing to something. We added new UI, wrote a new view, a new form, and all the associated test code to prove that the feature works.

  • #Python
  • #Django
  • #version

Which Django Version Should I Use?

New to Django and uncertain of what to use? This article explains which version of Django you should use.

  • #Python
  • #Django
  • #usability

Customer Requests - Building SaaS #88

In this episode, I worked on some customer requests now that I’ve finished launching the product. These requests improved the usability of the application in a few spots that were lacking.

  • #Python
  • #Django
  • #bugs

Squashing Bugs - Building SaaS #87

In this episode, I fixed some critical issues that my customer discovered. My customer is putting the app through its real paces for a school year and since this is the first run, there were bound to be some bugs.

  • #Python
  • #Django
  • #middleware

Episode 11 - Here, There, Middleware

On this episode, we will investigate Django middleware and see where it goes in your project. In the process, you’ll see why middleware is useful and how you can work with it.

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