showard | 364fe86 | 2008-10-17 02:01:16 +0000 | [diff] [blame] | 1 | from django.core import management |
2 | import common | ||||
3 | from autotest_lib.frontend import settings | ||||
4 | |||||
5 | management.setup_environ(settings) | ||||
showard | fa8629c | 2008-11-04 16:51:23 +0000 | [diff] [blame] | 6 | |
7 | def enable_autocommit(): | ||||
8 | from django.db import connection | ||||
9 | connection.cursor() # ensure a connection is open | ||||
10 | connection.connection.autocommit(True) |