Revision 0c55f609
b/snf-cyclades-app/synnefo/app_settings/__init__.py | ||
---|---|---|
21 | 21 |
] |
22 | 22 |
|
23 | 23 |
synnefo_static_files = { |
24 |
'synnefo.ui': '', |
|
24 |
'synnefo.ui': 'ui',
|
|
25 | 25 |
'synnefo.admin': 'admin', |
26 | 26 |
} |
b/snf-cyclades-app/synnefo/app_settings/default/ui.py | ||
---|---|---|
10 | 10 |
|
11 | 11 |
# base url for ui static files |
12 | 12 |
# if not set, defaults to MEDIA_URL + 'snf-<latest_ui_version>/' |
13 |
UI_MEDIA_URL = '/ui/static/' + 'snf/'
|
|
13 |
UI_MEDIA_URL = '/static/ui/snf/'
|
|
14 | 14 |
|
15 | 15 |
# UI requests to the API layer time out after that many milliseconds |
16 | 16 |
TIMEOUT = 10 * 1000 |
b/snf-cyclades-app/synnefo/ui/urls.py | ||
---|---|---|
41 | 41 |
url(r'userdata/', include('synnefo.ui.userdata.urls')) |
42 | 42 |
) |
43 | 43 |
|
44 |
# serve static files for convenience |
|
45 |
urlpatterns += patterns('', |
|
46 |
url(r'^static/(.*)$', 'django.views.static.serve', |
|
47 |
{'document_root': os.path.join(os.path.dirname(__file__), 'static')}), |
|
48 |
) |
|
49 |
|
|
50 | 44 |
if settings.DEBUG or settings.TEST: |
51 | 45 |
urlpatterns += patterns('', |
52 | 46 |
url(r'^jstests$', 'synnefo.ui.views.js_tests', name='js_tests'),) |
Also available in: Unified diff