from django.core import management | |
import common | |
from autotest_lib.frontend import settings | |
management.setup_environ(settings) | |
def enable_autocommit(): | |
from django.db import connection | |
connection.cursor() # ensure a connection is open | |
connection.connection.autocommit(True) |