blob: 7db92dc862e2fe514aa3635c20194e8bbdbde4bb [file] [log] [blame]
showard364fe862008-10-17 02:01:16 +00001from django.core import management
2import common
3from autotest_lib.frontend import settings
4
5management.setup_environ(settings)
showardfa8629c2008-11-04 16:51:23 +00006
7def enable_autocommit():
8 from django.db import connection
9 connection.cursor() # ensure a connection is open
10 connection.connection.autocommit(True)