1*9c5db199SXin Li"""Django settings for code that only needs readonly access to the database.""" 2*9c5db199SXin Li 3*9c5db199SXin Liimport common 4*9c5db199SXin Li 5*9c5db199SXin Li# This copies all the non-readonly settings into the readonly settings. 6*9c5db199SXin Li# We then overwrite the relevant settings to set readonly access. 7*9c5db199SXin Li# This allows us to update the generic settings without having duplicated 8*9c5db199SXin Li# entries between the readonly and non-readonly settings. 9*9c5db199SXin Lifrom autotest_lib.frontend.settings import * 10*9c5db199SXin Li 11*9c5db199SXin Li 12*9c5db199SXin LiAUTOTEST_DEFAULT['USER'] = AUTOTEST_DEFAULT['READONLY_USER'] 13*9c5db199SXin LiAUTOTEST_DEFAULT['HOST'] = AUTOTEST_DEFAULT['READONLY_HOST'] 14*9c5db199SXin LiAUTOTEST_DEFAULT['PASSWORD'] = AUTOTEST_DEFAULT['READONLY_PASSWORD'] 15