This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.apps import apps | |
from django.conf import settings | |
from django.core.management.base import BaseCommand | |
from ._create_sql_of_model import get_create_sql_for_model | |
from ._helper import select_by_raw_sql,exec_by_raw_sql | |
def _run(): | |
for app in settings.INSTALLED_APPS: | |
app_name = app.split('.')[0] | |
app_models = apps.get_app_config(app_name).get_models() |