|
23 | 23 | # SECRET_KEY. |
24 | 24 | SECRET_KEY = 'myRanDom_Secret_Key' |
25 | 25 | # Application definition |
26 | | -CUSTOM_TEMPLATE_PATH = '/admin/{}/'.format(APP_NAME) |
| 26 | +BASE_URL = '' # Enter the base url in your APACHE SETTINGS. e.g. 'ODM2ADMIN/' |
27 | 27 |
|
28 | | -URL_PATH = 'admin/' |
| 28 | +CUSTOM_TEMPLATE_PATH = '/{}{}/'.format(BASE_URL, APP_NAME) |
29 | 29 | """ END PATH CONFIGURATION """ |
30 | 30 |
|
31 | 31 |
|
|
112 | 112 | # Absolute path to the directory static files should be collected to. Don't put |
113 | 113 | # anything in this directory yourself; store your static files in apps' static/ |
114 | 114 | # subdirectories and in STATICFILES_DIRS. |
115 | | -STATIC_ROOT = '{}/{}/static'.format(BASE_DIR, APP_NAME) |
| 115 | +# STATIC_ROOT = '{}/{}/static'.format(BASE_DIR, APP_NAME) |
| 116 | +STATIC_DIR = '{}/{}/static'.format(BASE_DIR, APP_NAME) |
| 117 | +STATICFILES_DIRS = [STATIC_DIR] |
116 | 118 | # URL prefix for static files. |
117 | 119 | STATIC_URL = '/static/' |
118 | 120 | """ END STATIC FILE CONFIGURATION """ |
|
174 | 176 | 'class': 'config', |
175 | 177 | }, |
176 | 178 | { |
177 | | - 'url': '/' + URL_PATH + 'AddSensor.html', |
| 179 | + 'url': '/' + BASE_URL + 'AddSensor.html', |
178 | 180 | 'app_name': '{}'.format(APP_NAME), |
179 | 181 | 'title': 'Add Sensor Data', |
180 | 182 | 'class': 'tool', |
181 | 183 | }, |
182 | 184 | { |
183 | | - 'url': '/' + URL_PATH + 'AddProfile.html', |
| 185 | + 'url': '/' + BASE_URL + 'AddProfile.html', |
184 | 186 | 'app_name': '{}'.format(APP_NAME), |
185 | 187 | 'title': 'Add Soil Profile Data', |
186 | 188 | 'class': 'flag', |
187 | 189 | }, |
188 | 190 | { |
189 | | - 'url': '/' + URL_PATH + 'RecordAction.html', |
| 191 | + 'url': '/' + BASE_URL + 'RecordAction.html', |
190 | 192 | 'app_name': '{}'.format(APP_NAME), |
191 | 193 | 'title': 'Record an Action', |
192 | 194 | 'class': 'notepad', |
193 | 195 | }, |
194 | 196 | { |
195 | | - 'url': '/' + URL_PATH + 'ManageCitations.html', |
| 197 | + 'url': '/' + BASE_URL + 'ManageCitations.html', |
196 | 198 | 'app_name': '{}'.format(APP_NAME), |
197 | 199 | 'title': 'Manage Citations', |
198 | 200 | 'class': 'pencil', |
199 | 201 | }, |
200 | 202 | { |
201 | | - 'url': '/' + URL_PATH + 'chartIndex.html', |
| 203 | + 'url': '/' + BASE_URL + 'chartIndex.html', |
202 | 204 | 'app_name': '{}'.format(APP_NAME), |
203 | 205 | 'title': 'Graph My Data', |
204 | 206 | 'class': 'monitor', |
|
0 commit comments