FLASK Web frameworks
The main focus of Python has always been to get you cracking on with your coding – the language was never made for web programming. However, this has just made it more interesting to extend the language for the web, or to create an interface to web-based technologies. Some of these efforts lead to, among others, Flask, Bottle (no, really) and Django. This article covers Flask, a micro-framework. The reason it is called a micro-framework is that it aims to be minimal; others, like Django, aim to have many solutions and support a lot of features.
Mini-me
The minimalist thinking behind Flask makes it ideal for the early stages of learning. Getting a project off the ground will take you a few hours if you follow the right instructions. When you need more functions, Flask supports extensions so that you can add forms, database functions and so on. These extensions range from really simple additions for indexing and internationalisation, to many databases. You can also fairly easily add your own extensions – if you have some programming experience, of course.
You also have a management interface available as an extension, if you want. While this is useful, you will only need to use it for bigger changes; you’ll probably start using it when the complexity of the site reaches a certain point.
Flask can easily be set up as a content management system: a simple website with a few pages and a blog which you can create in a few hours with only prior knowledge of Python and HTML. If you think that ‘micro’
You’re reading a preview, subscribe to read more.
Start your free 30 days