Commit f29e5eca authored by Skia's avatar Skia
Browse files

Fix static files for dev

parent 64761a83
Pipeline #220 failed with stage
in 9 seconds
...@@ -187,6 +187,7 @@ MEDIA_URL = '/data/' ...@@ -187,6 +187,7 @@ MEDIA_URL = '/data/'
# https://docs.djangoproject.com/en/1.8/howto/static-files/ # https://docs.djangoproject.com/en/1.8/howto/static-files/
STATIC_URL = '/static/' STATIC_URL = '/static/'
STATIC_ROOT = './static/'
# Auth configuration # Auth configuration
......
...@@ -40,5 +40,9 @@ urlpatterns = [ ...@@ -40,5 +40,9 @@ urlpatterns = [
url(r'^ajax_select/', include(ajax_select_urls)), url(r'^ajax_select/', include(ajax_select_urls)),
url(r'^i18n/', include('django.conf.urls.i18n')), url(r'^i18n/', include('django.conf.urls.i18n')),
url(r'^jsi18n/$', javascript_catalog, js_info_dict, name='javascript-catalog'), url(r'^jsi18n/$', javascript_catalog, js_info_dict, name='javascript-catalog'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) # TODO: remove me for production!!! ]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment