blob: 753866eaba89c536a45f4f303e5a06aebd598f6f [file] [log] [blame]
Keyar Hood0420f632013-06-05 11:12:09 -07001"""Django settings for code that only needs readonly access to the database."""
2
3import common
4
5# This copies all the non-readonly settings into the readonly settings.
6# We then overwrite the relevant settings to set readonly access.
7# This allows us to update the generic settings without having duplicated
8# entries between the readonly and non-readonly settings.
9from autotest_lib.frontend.settings import *
10
11
12AUTOTEST_DEFAULT['USER'] = AUTOTEST_DEFAULT['READONLY_USER']
13AUTOTEST_DEFAULT['HOST'] = AUTOTEST_DEFAULT['READONLY_HOST']
14AUTOTEST_DEFAULT['PASSWORD'] = AUTOTEST_DEFAULT['READONLY_PASSWORD']