A. By manually committing or rolling back transactions using commit() and rollback()
B. By using the transaction.atomic decorator or context manager
C. By setting the AUTOCOMMIT variable in the projects settings
D. Django handles transactions automatically; no explicit handling is required
Correct Answer is :
B. By using the transaction.atomic decorator or context manager