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…
![](https://www.pycare.com/wp-content/uploads/2020/03/45-second-slowdown-10-second-timeout-edited.png)
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!'.…
![performance insights graph](https://www.pycare.com/wp-content/uploads/2020/03/performance-insights-graph-e1584657883746.png)
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…
![](https://www.pycare.com/wp-content/uploads/2020/03/couch-conference-concentration-startup-7111-scaled.jpg)
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,…
![](https://www.pycare.com/wp-content/uploads/2020/02/pexels-photo-1181359.jpeg)
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…
![](https://www.pycare.com/wp-content/uploads/2020/02/28824030147_55f3f95da1_c.jpg)
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…