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>
This commit is contained in:
Dan McGee 2013-01-21 15:14:44 -06:00
parent a15d0850af
commit f9252df113
3 changed files with 5 additions and 4 deletions

View File

@ -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;

View File

@ -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;
}

View File

@ -89,6 +89,9 @@
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'