django populate database in view code example Example: django populate database in view return self.cursor.execute(sql, params)