Setting Up Flask ORM with SQLAlchemy and Database Migrations

To use an ORM in Flask, install the required packages: pip3 install sqlalchemy flask-sqlalchemy Create a MySQL database for your application: CREATE DATABASE flask DEFAULT CHARSET utf8 COLLATE utf8_general_ci; Configure the database URI in your Flask app: app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://root:123456@localhost:3306/flask' Init ...

Posted on Thu, 18 Jun 2026 16:52:43 +0000 by sunnypal

Migrating GitLab Omnibus Instances Between Docker Hosts and Resolving Permission Errors

Environment Specifications OS: CentOS 7 Container Engine: Docker v26.0.0 Image: twang2218/gitlab-ce-zh Migration Workflow Pre-Migration Preparation Identify the initial launch configuration from the source machine. docker inspect --format='{{json .HostConfig.PortBindings}}' gitlab > bindings.json Document volume mounts to ensure consisten ...

Posted on Sun, 17 May 2026 18:41:23 +0000 by ElectricShaka

Flask to FastAPI: A Comparative Guide to Common Patterns

Installation and Basic Application Flask pip install flask Other package managers such as Poetry, Pipenv, and Conda also work. For example: poetry add flask FastAPI pip install fastapi uvicorn FastAPI does not ship with a built-in development server; Uvicorn is the recommended ASGI server. A minimal "Hello, world" application: Flas ...

Posted on Fri, 15 May 2026 01:45:57 +0000 by dakkonz

InfluxDB Data Migration Techniques

InfluxDB provides multiple approaches for migrating time-series data between systems or performing backups. Exporting Data Command-Line Query Export The influx command-line interface allows direct querying and exporting of measurements to external files. influx -database 'target_db' -execute 'SELECT * FROM sensor_data' -format 'csv' > backup ...

Posted on Mon, 11 May 2026 06:44:44 +0000 by agent47