OLD | NEW |
1 # Django settings for frontend project. | 1 # Django settings for frontend project. |
2 | 2 |
3 import os | 3 import os |
4 import common | 4 import common |
5 from autotest_lib.client.common_lib import global_config | 5 from autotest_lib.client.common_lib import global_config |
6 | 6 |
7 DEBUG = True | 7 DEBUG = True |
8 TEMPLATE_DEBUG = DEBUG | 8 TEMPLATE_DEBUG = DEBUG |
9 | 9 |
10 FULL_ADMIN = False | 10 FULL_ADMIN = False |
(...skipping 27 matching lines...) Expand all Loading... |
38 "readonly_password", | 38 "readonly_password", |
39 default='') | 39 default='') |
40 else: | 40 else: |
41 DATABASE_READONLY_PASSWORD = DATABASE_PASSWORD | 41 DATABASE_READONLY_PASSWORD = DATABASE_PASSWORD |
42 | 42 |
43 # prefix applied to all URLs - useful if requests are coming through apache, | 43 # prefix applied to all URLs - useful if requests are coming through apache, |
44 # and you need this app to coexist with others | 44 # and you need this app to coexist with others |
45 URL_PREFIX = 'afe/server/' | 45 URL_PREFIX = 'afe/server/' |
46 TKO_URL_PREFIX = 'new_tko/server/' | 46 TKO_URL_PREFIX = 'new_tko/server/' |
47 PLANNER_URL_PREFIX = 'planner/server/' | 47 PLANNER_URL_PREFIX = 'planner/server/' |
| 48 CROSCHART_URL_PREFIX = 'croschart/server/' |
48 | 49 |
49 # Local time zone for this installation. Choices can be found here: | 50 # Local time zone for this installation. Choices can be found here: |
50 # http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIME
ZONE-SET-TABLE | 51 # http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIME
ZONE-SET-TABLE |
51 # although not all variations may be possible on all operating systems. | 52 # although not all variations may be possible on all operating systems. |
52 # If running in a Windows environment this must be set to the same as your | 53 # If running in a Windows environment this must be set to the same as your |
53 # system time zone. | 54 # system time zone. |
54 TIME_ZONE = 'America/Los_Angeles' | 55 TIME_ZONE = 'America/Los_Angeles' |
55 | 56 |
56 # Language code for this installation. All choices can be found here: | 57 # Language code for this installation. All choices can be found here: |
57 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes | 58 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 'frontend.shared.json_html_formatter.JsonToHtmlMiddleware', | 97 'frontend.shared.json_html_formatter.JsonToHtmlMiddleware', |
97 ) | 98 ) |
98 | 99 |
99 ROOT_URLCONF = 'frontend.urls' | 100 ROOT_URLCONF = 'frontend.urls' |
100 | 101 |
101 TEMPLATE_DIRS = ( | 102 TEMPLATE_DIRS = ( |
102 # Put strings here, like "/home/html/django_templates" or "C:/www/django/tem
plates". | 103 # Put strings here, like "/home/html/django_templates" or "C:/www/django/tem
plates". |
103 # Always use forward slashes, even on Windows. | 104 # Always use forward slashes, even on Windows. |
104 # Don't forget to use absolute paths, not relative paths. | 105 # Don't forget to use absolute paths, not relative paths. |
105 | 106 |
106 os.path.abspath(os.path.dirname(__file__) + '/templates') | 107 os.path.abspath(os.path.dirname(__file__) + '/templates'), |
| 108 os.path.abspath(os.path.dirname(__file__) + '/croschart/templates') |
107 ) | 109 ) |
108 | 110 |
109 INSTALLED_APPS = ( | 111 INSTALLED_APPS = ( |
110 'frontend.afe', | 112 'frontend.afe', |
111 'frontend.tko', | 113 'frontend.tko', |
112 'frontend.planner', | 114 'frontend.planner', |
| 115 'frontend.croschart', |
113 'django.contrib.admin', | 116 'django.contrib.admin', |
114 'django.contrib.auth', | 117 'django.contrib.auth', |
115 'django.contrib.contenttypes', | 118 'django.contrib.contenttypes', |
116 'django.contrib.sessions', | 119 'django.contrib.sessions', |
117 'django.contrib.sites', | 120 'django.contrib.sites', |
118 ) | 121 ) |
119 | 122 |
120 AUTHENTICATION_BACKENDS = ( | 123 AUTHENTICATION_BACKENDS = ( |
121 'frontend.apache_auth.SimpleAuthBackend', | 124 'frontend.apache_auth.SimpleAuthBackend', |
122 ) | 125 ) |
OLD | NEW |