Python

A collection of 148 articles

  • #Python
  • #Django
  • #files

User File Use

Maybe your app needs to handle files from users like profile pictures. Accepting files from others is tricky to do safely. In this article, we’ll see the tools that Django provides to manage files safely.

  • #Python
  • #Django
  • #sessions

Episode 15 - User Session Data

On this episode, we will dig into a data storage technique that Django makes heavy use of for visitors to your site. This category of data is called session data.

  • #Python
  • #Django
  • #deployment

Episode 14 - Going Live

On this episode, we will look at what it takes to go live and how to prepare your Django project for the internet.

  • #Python
  • #Django
  • #settings

Making Sense Of Settings

All Django apps need to be configured in order to run properly. In this article, we will dig into how Django lets you configure your project using a settings module. We’ll also look at ways to be extra effective with settings.

  • #Python
  • #Django
  • #testing

Episode 13 - Does My Site Work?

On this episode, we will discuss how you can verify that your site works and continues to work. We’re digging into automated testing and how to write tests for your Django apps.

  • #Python
  • #Django
  • #sessions

Per-visitor Data With Sessions

How does Django know when a user is logged in? Where can the framework store data for a visitor on your app? In this article, we’ll answer those questions and look at a storage concept in Django called sessions.

  • #Python
  • #Django
  • #deployment

Deploy A Site Live

You’re ready to take the site you developed and share it with the world. What steps should you take to prepare your Django project for life on the web? That’s the focus of this article.

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