Follow the PyCare blog for updates and user stories about our services
July 22, 2021
Easy API Pagination in Flask
In this post I will show you how to set up API pagination in Flask, thanks primarily to Flask-SqlAlchemy's paginate method. Our goal is to use a URL like this: /v1/magazines?page=1&per-page=50 to generate JSON results…
June 4, 2021
The Hidden Dangers of Sloppy Python Code
I recently took a course with Uncle Bob Martin of Clean Coders. I have long believed that clean code provides the foundation that makes your web site run well. Without clean code, your web site…
March 26, 2020
Timeouts on Heroku? It’s Probably You
Have you ever logged into Heroku to see a short stretch of request failures, high response times, and H12 Request Timeout errors? The first thing that comes to mind is 'something is wrong with Heroku!'.…
March 20, 2020
Improve Django Database Performance with AWS Performance Insights
In this post I want to share how I use Performance Insights to proactively improve database performance for Django web applications. For those not familiar, Performance Insights is a tool within Amazon's Relational Database Service…
March 5, 2020
Python 2 is End of Life – time to update your app!
Python 2 has been marked as EOL as of January 1, 2020, largely due to it's less than ideal string handling methods. If you haven't migrated your code from Python 2 to Python 3 yet,…
February 19, 2020
10 Best Practices for Keeping a Python Web App Running Flawlessly
Here are 10 best practices I employ to keep Django and Flask web applications running in tip top shape. 1. Use managed services I have a strong opinion on this one. If you do not…
November 25, 2019
A Three-Layer Defense Against SQL Injection Attacks
According to the Open Web Application Security Project (OWASP), SQL injection is the #1 security threat to web applications. SQL injection attempts occur often. You can recognize them in your logs because they look like…