Home | History | Annotate | Download | only in frontend
      1 """Django settings for code that only needs readonly access to the database."""
      2 
      3 import 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.
      9 from autotest_lib.frontend.settings import *
     10 
     11 
     12 AUTOTEST_DEFAULT['USER'] = AUTOTEST_DEFAULT['READONLY_USER']
     13 AUTOTEST_DEFAULT['HOST'] = AUTOTEST_DEFAULT['READONLY_HOST']
     14 AUTOTEST_DEFAULT['PASSWORD'] = AUTOTEST_DEFAULT['READONLY_PASSWORD']
     15