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 Format2 min read
Audacious
Version: 4.4.1 Web:https://audacious-media-player.org Sometimes you just need a simple music player. No music library, no streaming from privacy-invading proprietary services, no overcooked user interface. Just a lightweight tool that doesn’t make li
Linux Format1 min read
Intel Patch For Outdated Microcode?
Intel engineer Dave Hansen has sparked a “Microcode Revision Discussion” regarding a proposed Linux patch on the kernel mailing list. This new feature would report outdated microcode through the existing sysfs vulnerabilities reporting system. Specif
Linux Format3 min read
Ubuntu Unity 24.10
The Unity interface was originally developed as an alternative to Gnome 2 by Canonical and included in Ubuntu from April 2011. Ultimately, Canonical abandoned Unity in favour of switching back to Gnome. This decision didn’t sit well with Ubuntu devel

Related