From 242833a0a3846c0b5704a7210b43b8f721c82a9f Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Thu, 23 Jan 2014 12:13:51 -0800 Subject: [PATCH] Configure default STATICFILES_DIRS for static files (css, js, imgs) And since we're using the newer django static file handling, we can remove the old debug url configration to find the static files. --- htsworkflow/frontend/urls.py | 6 ------ htsworkflow/settings.py | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/htsworkflow/frontend/urls.py b/htsworkflow/frontend/urls.py index cd2570b..681edaa 100644 --- a/htsworkflow/frontend/urls.py +++ b/htsworkflow/frontend/urls.py @@ -56,9 +56,3 @@ urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), ) - -if settings.DEBUG: - urlpatterns += patterns('', - url(r'^static/(?P.*)$', 'django.views.static.serve', - {'document_root': settings.MEDIA_ROOT}), - ) diff --git a/htsworkflow/settings.py b/htsworkflow/settings.py index ba2137a..add3c37 100644 --- a/htsworkflow/settings.py +++ b/htsworkflow/settings.py @@ -98,6 +98,9 @@ TIME_ZONE='America/Los_Angeles' # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.6/howto/static-files/ +STATICFILES_DIRS = ( + os.path.join(BASE_DIR, 'htsworkflow', 'frontend', 'static'), +) STATIC_URL = '/static/' -- 2.30.2