Author: Miguel Grinberg

2013-11-05T07:03:42Z

Flask-PageDown: Markdown Editor Extension for Flask-WTF

(I can't help it. I keep coming up with ideas for cool Flask extensions.)

If you've asked or answered a question on Stack Overflow you have seen the editor that they use. You type your text using Markdown syntax in a standard text area HTML control and below it a preview is generated as you type. This editor is powered by an open source project called PageDown.

Today I'm introducing Flask-PageDown, a wrapper extension that makes it really easy to add this control to your Flask-WTF based forms.

38 comments

2013-10-24T06:49:48Z

Flask-Moment: Flask and Jinja2 Integration with moment.js

If you followed my Mega-Tutorial articles you may remember that I dedicated an entire article to the topic of rendering dates and times.

I needed to revisit this problem for my upcoming book, and this time I decided to package this functionality in an extension. That is how Flask-Moment was born.

21 comments

2013-10-01T05:45:43Z

How to build and run MJPG-Streamer on the Raspberry Pi

It's been a while since I wrote the article on streaming video from the Raspberry Pi using MJPG-Streamer. Since I published that article I have received several comments and questions regarding issues building MJPG-Streamer, so in this short post I'm giving you revised build instructions.

335 comments

2013-09-09T06:12:19Z

Flask-Migrate: Alembic database migration wrapper for Flask

In this post I introduce you to Flask-Migrate, a new database migration handler for Flask based on Alembic that I just made public.

124 comments

2013-09-01T23:37:05Z

The Package Dependency Blues

Today I'm going to tell you a story. This is a true story about a web developer that I will call Peter.

Peter is the author of a web application that I will call App. He wrote App in Python, using a relatively popular web framework and a handful of packages that extend the framework with additional features. The actual names of these packages aren't important to the story, so I will call the framework Foo, and one of its extensions Bar.

23 comments

2013-07-28T19:11:38Z

Designing a RESTful API using Flask-RESTful

This is the third article in which I explore different aspects of writing RESTful APIs using the Flask microframework. Here is the first, and the second.

The example RESTful server I wrote before used only Flask as a dependency. Today I will show you how to write the same server using Flask-RESTful, a Flask extension that simplifies the creation of APIs.

188 comments

2013-07-22T05:11:05Z

Web Development With Flask

You probably noticed that lately I haven't been blogging as frequently as I used to. Today I'm letting you in on my little secret:

Flask Book front page

20 comments

2013-07-21T17:40:32Z

Night Sky Photography

Posted by Miguel Grinberg under Photography.

These days it is possible to take spectacular pictures of the night sky with regular cameras and equipment. For example, I took the above picture with a Canon 60D DSLR and an entry level 8mm fisheye lens (click on the picture to see a larger version). In this article I'll give you a few simple rules you need to follow to maximize the chances of getting breathtaking deep sky photographs.

7 comments

2013-06-24T07:36:05Z

Flask-Runner: Command Line Options for Flask

I just published a little extension for Flask that exposes some of the options that can be given when calling app.run().

1 comment

2013-06-16T07:37:14Z

How To Teach A Young Kid To Play Chess

My eight year old son has been asking me to teach him how to play chess for several months. I honestly avoided it because I worried that he was too young to learn, I did not want him to become frustrated with the game before he was able to memorize all the rules for how the pieces move and actually play.

Well, he couldn't take it anymore and yesterday (his first day of summer vacation) he cornered me and made me promise I was going to teach him.

6 comments