Keyar Hood | 0420f63 | 2013-06-05 11:12:09 -0700 | [diff] [blame] | 1 | """Sets up the Django environment for readonly access to the database. |
2 | |||||
3 | This sets the DJANGO_SETTINGS_MODULE to point to frontend/settings_readonly.py. | ||||
4 | Django will then use this file for configuration. | ||||
5 | |||||
6 | """ | ||||
7 | |||||
8 | import os | ||||
9 | |||||
10 | |||||
11 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', | ||||
12 | 'autotest_lib.frontend.settings_readonly') |