def setup_database_via_manager():
 engine = settings.DATABASES['default']['ENGINE']
 rdbms_type = database_manager.engine_to_rdbms_type(engine)
 manager = database_manager.get_manager_from_config(rdbms_type=rdbms_type)
 manager.create_instance()
 manager.grant_privileges()

def setup_database_via_manager ( ) : engine = settings . DATABASES [ 'default' ] [ 'ENGINE' ] rdbms_type = database_manager . engine_to_rdbms_type ( engine ) manager = database_manager . get_manager_from_config ( rdbms_type = rdbms_type ) manager . create_instance ( ) manager . grant_privileges ( )
creates a database manager instance .