Flask拆分过渡
4. 完全拆分二(公司使用版)
1.参数写死环境版
App
settings.py
2KB
ext.py
145B
__init__.py
548B
models.py
282B
__pycache__
ext.cpython-36.pyc
324B
views.cpython-36.pyc
565B
models.cpython-36.pyc
465B
__init__.cpython-36.pyc
530B
settings.cpython-36.pyc
2KB
views.py
502B
templates
static
manage.py
161B
requirements.txt
144B
3.数据库迁移版本
App
settings.py
2KB
ext.py
236B
__init__.py
545B
models.py
282B
__pycache__
ext.cpython-36.pyc
405B
views.cpython-36.pyc
565B
models.cpython-36.pyc
465B
__init__.cpython-36.pyc
526B
settings.cpython-36.pyc
2KB
views.py
502B
templates
static
manage.py
471B
requirements.txt
144B
2.参数环境变量版
App
settings.py
2KB
ext.py
145B
__init__.py
545B
models.py
282B
__pycache__
ext.cpython-36.pyc
324B
views.cpython-36.pyc
565B
models.cpython-36.pyc
465B
__init__.cpython-36.pyc
526B
settings.cpython-36.pyc
2KB
views.py
502B
templates
static
manage.py
384B
requirements.txt
144B
2. 蓝图路由和懒加载模型
App
__init__.py
494B
models.py
340B
__pycache__
views.cpython-36.pyc
561B
models.cpython-36.pyc
624B
__init__.cpython-36.pyc
570B
views.py
409B
templates
static
manage.py
161B
requirements.txt
144B
1.懒加载式拆分路由
App
__init__.py
144B
models.py
0B
__pycache__
views.cpython-36.pyc
371B
__init__.cpython-36.pyc
349B
views.py
91B
templates
static
manage.py
161B
requirements.txt
144B
3. 完全拆分一(普通使用版)
App
settings.py
0B
ext.py
145B
__init__.py
468B
models.py
282B
__pycache__
ext.cpython-36.pyc
324B
views.cpython-36.pyc
565B
models.cpython-36.pyc
465B
__init__.cpython-36.pyc
574B
views.py
502B
templates
static
manage.py
161B
requirements.txt
144B
暂无评论