diff --git a/www/conservancy/settings.py b/www/conservancy/settings.py index 40a70b21..af8db969 100644 --- a/www/conservancy/settings.py +++ b/www/conservancy/settings.py @@ -84,7 +84,7 @@ INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.messages', 'django.contrib.humanize', - # 'django.contrib.staticfiles', + 'django.contrib.staticfiles', 'conservancy.apps.blog', 'conservancy.apps.contacts', 'conservancy.apps.contractpatch', @@ -125,6 +125,11 @@ TEMPLATES = [ } ] +STATIC_ROOT = BASE_DIR.parent / 'collected_static' +STATICFILES_DIRS = [ + BASE_DIR / 'conservancy' / 'static', +] + AUTHENTICATION_BACKENDS = ( # 'conservancy.auth.LDAPBackend', 'django.contrib.auth.backends.ModelBackend', diff --git a/www/podjango/static/img/cast/audio_mp3_button.png b/www/podjango/static/podjango/img/cast/audio_mp3_button.png similarity index 100% rename from www/podjango/static/img/cast/audio_mp3_button.png rename to www/podjango/static/podjango/img/cast/audio_mp3_button.png diff --git a/www/podjango/static/img/cast/audio_ogg_button.png b/www/podjango/static/podjango/img/cast/audio_ogg_button.png similarity index 100% rename from www/podjango/static/img/cast/audio_ogg_button.png rename to www/podjango/static/podjango/img/cast/audio_ogg_button.png diff --git a/www/podjango/static/img/cast/faif_144x144.jpg b/www/podjango/static/podjango/img/cast/faif_144x144.jpg similarity index 100% rename from www/podjango/static/img/cast/faif_144x144.jpg rename to www/podjango/static/podjango/img/cast/faif_144x144.jpg diff --git a/www/podjango/static/img/cast/faif_200x200.jpg b/www/podjango/static/podjango/img/cast/faif_200x200.jpg similarity index 100% rename from www/podjango/static/img/cast/faif_200x200.jpg rename to www/podjango/static/podjango/img/cast/faif_200x200.jpg diff --git a/www/podjango/static/img/cast/faif_300x300.jpg b/www/podjango/static/podjango/img/cast/faif_300x300.jpg similarity index 100% rename from www/podjango/static/img/cast/faif_300x300.jpg rename to www/podjango/static/podjango/img/cast/faif_300x300.jpg diff --git a/www/podjango/static/img/cast/faif_300x300.xcf b/www/podjango/static/podjango/img/cast/faif_300x300.xcf similarity index 100% rename from www/podjango/static/img/cast/faif_300x300.xcf rename to www/podjango/static/podjango/img/cast/faif_300x300.xcf diff --git a/www/podjango/static/img/cast/halfbakedmedia-logo.png b/www/podjango/static/podjango/img/cast/halfbakedmedia-logo.png similarity index 100% rename from www/podjango/static/img/cast/halfbakedmedia-logo.png rename to www/podjango/static/podjango/img/cast/halfbakedmedia-logo.png diff --git a/www/podjango/static/img/cast/halfbakedmedia-logo_100px.png b/www/podjango/static/podjango/img/cast/halfbakedmedia-logo_100px.png similarity index 100% rename from www/podjango/static/img/cast/halfbakedmedia-logo_100px.png rename to www/podjango/static/podjango/img/cast/halfbakedmedia-logo_100px.png diff --git a/www/podjango/static/img/cast/rss-audiomp3.png b/www/podjango/static/podjango/img/cast/rss-audiomp3.png similarity index 100% rename from www/podjango/static/img/cast/rss-audiomp3.png rename to www/podjango/static/podjango/img/cast/rss-audiomp3.png diff --git a/www/podjango/static/img/cast/rss-audioogg.png b/www/podjango/static/podjango/img/cast/rss-audioogg.png similarity index 100% rename from www/podjango/static/img/cast/rss-audioogg.png rename to www/podjango/static/podjango/img/cast/rss-audioogg.png diff --git a/www/podjango/static/img/cast/rss-miro.png b/www/podjango/static/podjango/img/cast/rss-miro.png similarity index 100% rename from www/podjango/static/img/cast/rss-miro.png rename to www/podjango/static/podjango/img/cast/rss-miro.png diff --git a/www/podjango/static/img/feed-icon-14x14.png b/www/podjango/static/podjango/img/feed-icon-14x14.png similarity index 100% rename from www/podjango/static/img/feed-icon-14x14.png rename to www/podjango/static/podjango/img/feed-icon-14x14.png diff --git a/www/podjango/static/license/index.html b/www/podjango/static/podjango/license/index.html similarity index 100% rename from www/podjango/static/license/index.html rename to www/podjango/static/podjango/license/index.html diff --git a/www/podjango/static/podjango.css b/www/podjango/static/podjango/podjango.css similarity index 100% rename from www/podjango/static/podjango.css rename to www/podjango/static/podjango/podjango.css diff --git a/www/podjango/templates/podjango/audio_mp3_button.inc.html b/www/podjango/templates/podjango/audio_mp3_button.inc.html new file mode 100644 index 00000000..77b07834 --- /dev/null +++ b/www/podjango/templates/podjango/audio_mp3_button.inc.html @@ -0,0 +1,3 @@ +{% load static %} + + diff --git a/www/podjango/templates/podjango/audio_ogg_button.inc.html b/www/podjango/templates/podjango/audio_ogg_button.inc.html new file mode 100644 index 00000000..f7b0f669 --- /dev/null +++ b/www/podjango/templates/podjango/audio_ogg_button.inc.html @@ -0,0 +1,3 @@ +{% load static %} + + diff --git a/www/podjango/templates/podjango/cast/cast_archive_day.html b/www/podjango/templates/podjango/cast/cast_archive_day.html index 39676e0d..f57ae6d6 100644 --- a/www/podjango/templates/podjango/cast/cast_archive_day.html +++ b/www/podjango/templates/podjango/cast/cast_archive_day.html @@ -9,13 +9,7 @@ {% block content %} -
{{ object.pub_date|date:"j F Y" }}
diff --git a/www/podjango/templates/podjango/cast/cast_list.html b/www/podjango/templates/podjango/cast/cast_list.html index 2b6c4683..2071c50d 100644 --- a/www/podjango/templates/podjango/cast/cast_list.html +++ b/www/podjango/templates/podjango/cast/cast_list.html @@ -8,13 +8,7 @@ {% block content %} -Displaying casts @@ -26,10 +20,8 @@ tagged {% for tag in tags %}{% if not forloop.last %}{% if not forloop.first %},
{{ object.pub_date|date:"F j, Y" }}
{{ cc.pub_date|date:"F j, Y" }}