Use Flask-Nav3 with Flask Blueprints

Posted on Mon 27 May 2024 in Flask

How to use Flask-Nav3 to create a navigation bar built from components defined in Flask Blueprints


Continue reading

Flask-Menu review

Posted on Mon 13 May 2024 in Flask

A review of the Flask-menu Flask extension. I use it to create a dynamic navbar for a small Flask web app.


Continue reading

Add Roll-Based Access Control (RBAC) to your Python Flask web app

Posted on Thu 02 May 2024 in Flask

Add the ability to manage user access and permissions to your web app. This post shows how I integrated the Flask-Security-Too extension into my existing web app.


Continue reading

Use blueprints to organize a Flask application

Posted on Tue 30 April 2024 in Flask

This post demonstrates Flask blueprints and clearly describes the rules Flask follows when searching for template files in blueprint folders, and provides concrete examples.


Continue reading

Create a local copy of a WordPress blog

Posted on Sat 02 March 2024 in Blogging

Use Docker containers to create a WordPress server on your local PC and restore your WordPress backup files to it.


Continue reading

How Open-Source Large Language Models are evolving

Posted on Sat 20 January 2024 in Machine Learning

New research suggests that open-source machine learning models like Llama have a chance to match the capabilities and performance of proprietary models like ChatGPT.


Continue reading

Install and run a machine learning model on your laptop

Posted on Mon 18 December 2023 in Machine Learning

Discover how to run machine learning models, such as large language models, on consumer-grade computers using the Ollama project.


Continue reading

Move the Docker data directory

Posted on Thu 14 December 2023 in Docker

Configure the Docker daemon to store all its data in a different directory, instead of in the default directory.


Continue reading

Create a database command-line utility

Posted on Thu 09 November 2023 in Python

I describe how I used Python and the SQLAlchemy ORM to create tables and relationships in an SQL database and how I created a command-line interface that allows a user to write data to the database, and read it back.


Continue reading

Use SQLAlchemy to write data to a database table

Posted on Mon 16 October 2023 in Python

How to use Python and the SQLAlchemy ORM to create a table in a database, write data to it, and read it back.


Continue reading

Package Python applications with modern tools

Posted on Mon 18 September 2023 in Python

Python packaging has changed over the past few years. In this post, I will update the way my usermapper Python package is structured and use modern tools to re-publish it.


Continue reading

Flask-Session deep dive

Posted on Thu 14 September 2023 in Flask

An in-depth review of the Flask-Session extension for the Flask Python web application framework. I review how well it can be used to manage ephemeral, anonymous user sessions. I test using the local file system, SQLAlchemy with a PostgeSQL database, and a Redis database to provide the sessions' backend data storage.


Continue reading