Configure default STATICFILES_DIRS for static files (css, js, imgs)
authorDiane Trout <diane@ghic.org>
Thu, 23 Jan 2014 20:13:51 +0000 (12:13 -0800)
committerDiane Trout <diane@ghic.org>
Tue, 10 Jun 2014 23:10:19 +0000 (16:10 -0700)
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
htsworkflow/settings.py

index cd2570b0dfd093185d74af96c55867923d613c11..681edaab2738292b679c41af200a2e48654b5e44 100644 (file)
@@ -56,9 +56,3 @@ urlpatterns = patterns('',
 
     url(r'^admin/', include(admin.site.urls)),
 )
-
-if settings.DEBUG:
-  urlpatterns += patterns('',
-      url(r'^static/(?P<path>.*)$', 'django.views.static.serve',
-        {'document_root': settings.MEDIA_ROOT}),
-  )
index ba2137ae56d35bf61bea11559ea73b8b7f94aff0..add3c37445298ce889f22c75ebc05b9a71fdfb24 100644 (file)
@@ -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/'