Bootstrap Modals Without jQuery

In this post I’ll be showing how you can pretty easily write your own vanilla JavaScript to replace jQuery when using bootstrap modals.

Read more...

Storing Passwords In Flask

There is a plethora of guides out there about how to securely store passwords, but there are not as many of those guides that apply to Flask specifically. I spend quite a bit of my free time on the Pallets discord helping people out with their Flask questions, and often enough we have people storing passwords as plain text. So I thought I would write about the different options one has for correctly storing passwords in a Flask app.

Read more...

Request Method Spoofing In Flask

I recently found myself wanting to do method spoofing in flask. It turned out this isn’t such a simple straight forward thing to do. So sit back while I take you down the rabbit hole that is method spoofing in flask.

Read more...

Stop Trying To Be Clever

This post is a little bit of a rant about trying to be too clever in code. The kind of code that you might have written 3 months ago and now can’t decipher, let alone other people.

Read more...

Validating Ajax Requests With Wtforms In Flask

I’ve been using Flask to build web applications for over a year now. I always use WTForms for my form validation Eventually I needed to create a more interactive form that submitted with AJAX instead of a more traditional form submit, but I wanted to continue to use WTForms for validation. Here I will demonstrate how I reused my existing WTForms validation with JSON/AJAX requests.

Read more...