blob: cdda66f5eacf445efbde454d1a557b4f19311ab4 [file] [log] [blame]
"""Sets up the Django environment for readonly access to the database.
This sets the DJANGO_SETTINGS_MODULE to point to frontend/settings_readonly.py.
Django will then use this file for configuration.
"""
import os
import django
import django.setup
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'autotest_lib.frontend.settings_readonly')
django.setup()