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.1.tar.gz
(20.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file etu-django-mcmt-1.0.1.tar.gz.
File metadata
- Download URL: etu-django-mcmt-1.0.1.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3abc66f36149e629f6a5a098257840f657d0856911da43e757170cb47348f077
|
|
| MD5 |
63a11abaabad43ca2d7aa41d9ad1afe0
|
|
| BLAKE2b-256 |
3f9d676dfba4793f195e273b0dcf913ecec72a6a63379e5d8712007e91b744ea
|
File details
Details for the file etu_django_mcmt-1.0.1-py3-none-any.whl.
File metadata
- Download URL: etu_django_mcmt-1.0.1-py3-none-any.whl
- Upload date:
- Size: 24.4 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 |
af91409edd047278d1ba2a5bdc41cadbe41dd257f09a8c482b0affcf7fa8c0fe
|
|
| MD5 |
6d11b3ce0d01234ed88f41ba9549086a
|
|
| BLAKE2b-256 |
763c14071b444f6715eee565512fdc203551a889695648a7b5c7085c93bc0c1a
|