Follow the PyCare blog for feature, updates, 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…
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 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…