summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-21 22:14:44 +0100
committerDan McGee <dan@archlinux.org>2013-01-21 22:14:44 +0100
commitf9252df1138ae388168cf76cb3d654a2abbce4ec (patch)
tree35f86d0dbe2bb0920b10d5409216cb9971d9b497
parenta15d0850af0f766cd895b863f62524f1a1b2fe05 (diff)
downloadarchweb-f9252df1138ae388168cf76cb3d654a2abbce4ec.tar.gz
archweb-f9252df1138ae388168cf76cb3d654a2abbce4ec.tar.xz
Switch to using the cached STATICFILES_STORAGE backend
This should finally let us crank up the Expires: header to far-future values in production since updates to JS and CSS files will take effect immediately. Some minor removals were made from retro stylesheets as they were referencing files that don't actually exist because they were missing from the web archive. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--retro/static/2002/main.css1
-rw-r--r--retro/static/2003/main.css5
-rw-r--r--settings.py3
3 files changed, 5 insertions, 4 deletions
diff --git a/retro/static/2002/main.css b/retro/static/2002/main.css
index fb8d4a6..ea33cfa 100644
--- a/retro/static/2002/main.css
+++ b/retro/static/2002/main.css
@@ -89,7 +89,6 @@ ul.list {
}
table.border {
- background-image: url('bg.gif');
background-repeat: no-repeat;
background-color: #000000;
border-bottom: #cccccc 1px solid;
diff --git a/retro/static/2003/main.css b/retro/static/2003/main.css
index a9aa1dd..b9b2330 100644
--- a/retro/static/2003/main.css
+++ b/retro/static/2003/main.css
@@ -140,7 +140,7 @@ table.box {
}
table.header {
- background: #000000 url('bg.gif') no-repeat;
+ background: #000000;
border-bottom: #cccccc 1px solid;
border-left: #cccccc 1px solid;
border-right: #cccccc 1px solid;
@@ -231,7 +231,6 @@ th {
}
th.row {
- background: url('grid.png');
}
th.rowhdr {
@@ -243,7 +242,7 @@ th.rowhdr {
td.box_headline {
color: #dddddd;
- background: #000000 url('bg.gif') no-repeat;
+ background: #000000;
border-bottom: #cccccc 1px solid;
padding: 0px;
}
diff --git a/settings.py b/settings.py
index 8ed5cb6..dbc0615 100644
--- a/settings.py
+++ b/settings.py
@@ -89,6 +89,9 @@ STATICFILES_DIRS = (
os.path.join(DEPLOY_PATH, 'sitestatic'),
)
+# Static files backend that allows us to use far future Expires headers
+STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.CachedStaticFilesStorage'
+
# Configure where messages should reside
MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage'