aosp12/external/autotest/frontend/setup_django_lite_environme...

13 lines
351 B
Python

import os
import common
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'autotest_lib.frontend.settings_lite')
from autotest_lib.frontend.afe import readonly_connection
readonly_connection.set_globally_disabled(True)
import django.core.management
django.core.management.call_command('syncdb', interactive=False, verbosity=0)