Etu Django Migrations Cache Manager Tool。
Project description
概括
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 ,可以不用配置
使用方法
python manage.py db_makemigrations
python manage.py db_migrate
错误反馈
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
etu-django-mcmt-1.0.0.tar.gz
(20.7 kB
view hashes)
Built Distribution
Close
Hashes for etu_django_mcmt-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55be8610879fec2da12c0730dd6f4ebe750ec4da4a53212df1047cf7595a833b |
|
MD5 | b318f029a00c7732b2aa29a64a39d01a |
|
BLAKE2b-256 | 3c36f905aa5548c99b77f5439808660eb1abf8da3ab30ede0a11342fad9aecf7 |