# -*- coding: utf-8 -*- from django.db import connection def db_table_exists(table_name): """ return true if table exist """ return table_name in connection.introspection.table_names()