Get all table names in a Django app
This will give you all of the table names, like the OP asks for: from django.apps import apps tables = [m._meta.db_table for c in apps.get_app_configs() for m in c.get_models()] This will give you all model names: from django.db import connection tables = connection.introspection.table_names() seen_models = connection.introspection.installed_models(tables) This will give you all of the model names … Read more