Python

A collection of 164 articles

  • #twitch
  • #Python
  • #Django
  • #SaaS

Zip Archive HTTP Response - Building SaaS with Python and Django #124

In this episode, we continued to build the PDF reporting feature. The focus on the stream was on building the zip archive file as the HTTP response. This will be the container for future PDF reports. I also started the setup for the weasyprint PDF package.

  • #Python
  • #Django
  • #performance
  • #caching

Go Fast With Django

How do you make your Django app fast? You measure what is slow, scale your system when necessary, and use a combination of fast database queries and strategic caching. In this Understand Django article, we’ll explore those topics and more to help you get a performant Django app.

  • #twitch
  • #Python
  • #Django
  • #SaaS

PDF Bundle Report - Building SaaS with Python and Django #123

In this episode, we started work on a new feature for the homeschool application. This feature is a report bundle that will add PDFs of all school year activities to a zip archive for a customer’s record keeping purposes.

  • #twitch
  • #Python
  • #Django
  • #SaaS

Customer UX Feature - Building SaaS with Python and Django #122

In this episode, I added some user experience (UX) polish to my Django app to fill in a gap where users couldn’t quickly jump to their proper school year when their homeschool is between school years. We cleaned up the view, modified a template, and wrote the test to prove that the change works.

  • #Python
  • #Threat modeling

Threat Modeling Jurassic Park with Python

How would John Hammond design the systems on Isla Nublar in 2021? Would he spare no expense to reduce risk of a disaster? We hope that his software engineers would employ the concept of threat modeling, one of the most important security skills in modern software development. Corey will give an overview of what threat modeling is, and how to use it to highlight security concerns early on in the SDLC. This will lead into a demonstration of using pytm, a Pythonic framework for threat modeling, to identify threats to Jurassic Park’s systems within your favorite Python IDE.

  • #twitch
  • #Python
  • #Django
  • #SaaS

Customer Requests - Building SaaS with Python and Django #121

In this episode, we started by trying to add django-auto-prefetch. Unfortunately, it didn’t work well for my app. I decided to stop trying to add that package and switched to working on a feature request of one of my customers.

  • #twitch
  • #Python
  • #Django
  • #SaaS

Scheduling Bugs - Building SaaS with Python and Django #120

In this episode, I debugged a deep scheduling bug that was tricky to track down and understand.

  • #Python
  • #Django
  • #commands

Command Your App

With this Understand Django article, you’ll learn about commands. Commands are the way to execute scripts that interact with your Django app. We’ll see built-in commands and how to build your own commands.

  • #twitch
  • #Python
  • #Django
  • #SaaS
  • #htmx
  • #django-htmx

Working With django-htmx - Building SaaS with Python and Django #119

In this episode, I added django-htmx to help finish off a bulk task deletion feature for my homeschool app. We explored the features that are available in django-htmx, and I showed how to add django-htmx to my project and fully integrate the package.

  • #twitch
  • #Python
  • #Django
  • #SaaS

Bulk Delete Template - Building SaaS with Python and Django #118

In this episode, I worked on the bulk delete template that users will see when deleting tasks within the homeschool app.

  • #Python
  • #Data Science
  • #Pandas
  • #FinRA
  • #markets

Pandas for Data Analysis

#Pandas is a great library for reading and manipulating data. Chris Malec gave an overview of pandas, focusing on how to read in some common data types, create filters to specific table cells, apply functions to your data, merge tables together, and create nice plots as well as summary tables from your data. For an application, Chris used some financial data, and briefly discussed his work at FinRA finding manipulative behavior in the US stock market. #Python #DataScience

  • #twitch
  • #Django
  • #SaaS
  • #Python

Bulk Delete Form - Building SaaS with Python and Django #117

In this episode, I worked on the bulk delete form that I need so that my customers can delete many tasks in the system at once.

  • #twitch
  • #Python
  • #Django
  • #SaaS
  • #bulk
  • #delete

Bulk Delete View - Building SaaS with Python and Django #116

In this episode, I started a bulk delete view to make it possible for customers to delete many course tasks at once.

  • #twitch
  • #Python
  • #Django
  • #SaaS

Finish School Break Filtering - Building SaaS with Python and Django #115

In this episode, we finished the UI work and wrote the final tests needed to complete the school break filtering by student feature.

  • #twitch
  • #Python
  • #Django
  • #m2m
  • #SaaS

Student Filtering UI - Building SaaS with Python and Django #114

In this episode, we worked on UI and form changes to enable the extra many to many filtering that enables school breaks to be applied to individual students.

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

  • #twitch
  • #Python
  • #Django
  • #SaaS

School Break Filters - Building SaaS with Python and Django #113

In this episode, we finished up making changes to the app to support filtering school breaks to students.