django connection cursor param code example
Example: django connection cursor
from django.db import connection
with connection.cursor() as cursor:
cursor.execute('TRUNCATE TABLE table_name CASCADE')
from django.db import connection
with connection.cursor() as cursor:
cursor.execute('TRUNCATE TABLE table_name CASCADE')