Hackers and Slackers

Structuring your Flask App Like a Responsible Adult

Leverage Blueprints, Flask-Assets, and the Application Factory.

When we first started developing in Flask, most of us took the 5 lines of code in the quick-start guide and ran with it. Compared to every other web framework, getting a "Hello world" to flash on screen without being

Flask Author imageTodd Birchard Author imagetodd Oct 15
Read

Flask Routing & Sessions: A Subtle Symphony

With great flexibility comes great responsibility

It isn't often you find somebody sad or miserable enough to detail the inner workings of web framework features, such as sessions or routing. This is understandably so; we use frameworks because presumably hate dealing with these things from scratch.

Flask Author imageTodd Birchard Author imagetodd Sep 19
Read

Recreate JIRA Service Desk in Python & Flask

When SaaS doesn't cut it, beat it down and take everything its got

When it comes to SaaS products in the realm of Service desks, JIRA Service Desk is at the very least, just as powerful as the next solution (Zendesk comes to mind). This naturally begs the question: Why is JIRA Service

Atlassian Author imageTodd Birchard Author imagetodd Aug 31
Read

The End-to-End Guide to Handling Forms in Flask

The subtle art of consenually capturing personal data

Happy Tuesday everybody! To start this week hot, let's talk about something that everybody hates: forms. The only thing more painful than filling out a web form is creating one, much less a functional one with feedback. Listen, if you're

Flask Author imageTodd Birchard Author imagetodd Aug 15
Read

Using MongoDB Atlas as your Flask Database

Since you prefer using Python and Flask, I’ll assume we both prefer enjoyable dev.

It's been roughly a year since MongoDB launched their Stitch "back-end as a service" product, and I've been tinkering with Mongo on the cloud ever since. Alright fine, "tinkering with" may better be described as  "accidentally became dependent on it

Flask Author imageTodd Birchard Author imagetodd Jul 31
Read

Frontend in Flask: Page Templates and Assets

When Python developers manage presentation layers.

If you're familiar with Django (or Python to any extent), you've probably accepted the concept of what Python guys refer to as "static assets" without much consideration. At some point in Django's conception, a design decision was made: any code,

Flask Author imageTodd Birchard Author imagetodd Jul 23
Read

Starting a Flask Application, ft. Heroku

Ease-of-use framework: meet ease-of-use platform

We all knew it would only be a matter of time before a blog full of Python junkies would touch on Python's fastest growing framework. Staying true to all that is Pythonic, Flask is a gift to developers who value

Flask Author imageTodd Birchard Author imagetodd Jul 08
Read