Linux Format

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.

More from Linux Format

Linux Format5 min read
Some Ansible Advice For Around The Home!
Of late, this writer has been busy creating new virtual hosts for different things and decided that it would be an ideal time to get stuck into Ansible. Things have evolved in system management since Bash. Ansible is a great way to deploy software c
Linux Format14 min read
Ubuntu at 20
Without Ubuntu, the current Linux landscape would be unrecognisable. Back in October 2004, the first 4.10 (2004.10) release of Ubuntu, with its intriguing Warty Warthog code name, leapt from obscurity to being one of the most downloaded Linux distrib
Linux Format3 min read
Kernel Watch
Linus Torvalds announced the fourth RC (Release Candidate) for what will become Linux 6.9 in another few weeks. In his announcement, he noted that there was “Nothing particularly unusual going on this week – some new hardware mitigations may stand o

Related Books & Audiobooks