Please note: Seats are limited and you need to register separately after purchasing a conference ticket.
Please check out the requirements of this tutorial below.
Please check out the requirements of this tutorial below.
A Beginners Intro to the Flask Web Framework
For those who have always wanted to know how to make a simple (or not-so-simple) data-backed website with Python, here's how I do it.Abstract
We'll cover how to combine Flask, SQLite, HTML, CSS, and some common flask add-ons to make a very simple version of IMDB. Some knowledge of Python, databases and HTML would be useful, but not neccessary.Requirements
A computer with Python 3.6 (or thereabouts - but Python 3 is what I'll be using), preferably with the following packages (pip) installed (although this takes only a few minutes)
- pip install flask
- pip install flask-sqlalchemy
- pip install flask-wtf
and some means to edit an SQLite database - in Windows I use SQLiteStudio which is free and works well. Its available for Linux and Mac as well.
For users who don't want to install anything, this can all be done in a virtual environment, and I'm going to assume those who want to use one know how to set it up themselves.
Alternatively the whole thing can be done online, without having to install anything, using REPL.IT. This can work really well, but can just as easily be a sluggish nightmare depending on the day, the weather and the way you hold your tongue.
Steve Dunford
Steve Dunford is a grumpy old Teacher of Digital Technologies at Burnside High School in Christchurch where he teaches Electronics, Computer Science and Software Engineering. In his spare(?!) time he is a vintage radio nut and part-time pretend farmer.