Skip to main content

概括

etu 系列(easy to use)
让技术更容易使用!
Etu Django Migrations Cache Manager Tool,此工具是用于Django框架项目,功能主要是管理 Migrations 缓存,
实现让 Python 项目更容易上容器,解决容器生命周期 migrations 文件管理不便的问题。

说明

本包名字为 etu-django-mcmt , 通过 setting 配置中 INSTALLED_APPS 的方式导入 etu_django_mcmt 即可。
目前此工具只支持单一数据库路由模式,不可用于多数据库路由模式,且数据类型为 MySQL 类型。

安装方法

通过pip命令进行安装:pip install etu-django-mcmt==1.0.0

参数说明

# settings.py 中新增 etu_django_mcmt
    INSTALLED_APPS = [
        'etu_django_mcmt',
    ]
# 配置说明
DCM_DB_ALIAS = 'default' # 在setting中或者环境变量配置,默认是 default ,可以不用配置
DCM_APP_NAMES = ['app']  # 配置指定的模块列表,即 INSTALLED_APPS 中需要管理 migrations 的模块

使用方法

    python manage.py db_makemigrations 
    python manage.py db_migrate 

错误反馈

Release files for etu-django-mcmt 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for etu-django-mcmt 1.0.2
File Size Uploaded
etu-django-mcmt-1.0.2.tar.gz 29.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for etu-django-mcmt 1.0.2
File Interpreter ABI Platform
etu_django_mcmt-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 65.1 kB

Release files / etu-django-mcmt-1.0.2.tar.gz

Download URL etu-django-mcmt-1.0.2.tar.gz
Size 29.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a5cb8b2b3042ad25b1eaa97e625915a53e57c95a97c81ec0db14e4d69d5ee02a
BLAKE2b-256 checksum
How to use checksums
e7f7e23b2bed81d46ac9151963bbf9671d34773559dc12a42907ea107d9b48c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / etu_django_mcmt-1.0.2-py3-none-any.whl

Download URL etu_django_mcmt-1.0.2-py3-none-any.whl
Size 36.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e09d3c304cc7b95e34ebb85ab64c9350c4f5a29982491037a24c20a2f0e268fe
BLAKE2b-256 checksum
How to use checksums
b9c1cc4b37ee2db67ff02adcf5b97f4cbc4959d96c3421f9c843ee54a8344ec1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page