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 ,可以不用配置
DCM_APP_NAMES = ['app'] # 配置指定的模块列表,即 INSTALLED_APPS 中需要管理 migrations 的模块
使用方法
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.2.tar.gz
(29.1 kB
view details)
Built Distribution
File details
Details for the file etu-django-mcmt-1.0.2.tar.gz
.
File metadata
- Download URL: etu-django-mcmt-1.0.2.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5cb8b2b3042ad25b1eaa97e625915a53e57c95a97c81ec0db14e4d69d5ee02a |
|
MD5 | af14700837c3d8f4422fc8fce0c1d7c8 |
|
BLAKE2b-256 | e7f7e23b2bed81d46ac9151963bbf9671d34773559dc12a42907ea107d9b48c0 |
File details
Details for the file etu_django_mcmt-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: etu_django_mcmt-1.0.2-py3-none-any.whl
- Upload date:
- Size: 36.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e09d3c304cc7b95e34ebb85ab64c9350c4f5a29982491037a24c20a2f0e268fe |
|
MD5 | 4e974b34621e606f21913950179ef3b9 |
|
BLAKE2b-256 | b9c1cc4b37ee2db67ff02adcf5b97f4cbc4959d96c3421f9c843ee54a8344ec1 |