Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在循环中自动检索位于我项目中特定 Django 应用程序中的模型的名称。有人知道该怎么做吗?
此致
纪尧姆
from django.db import get_models, get_app app = get_app('myappname') models = get_models(app)