diff options
author | Dan McGee <dan@archlinux.org> | 2011-12-05 23:06:10 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-12-05 23:06:10 -0600 |
commit | 943ef2e8e436a32ce5dc956c4d855866cd644cc1 (patch) | |
tree | 870f68873a61bcceff00e27b692abaef7542c991 /templates/base.html | |
parent | 1c23308299f33e5b429899463eb207f07ad51403 (diff) |
Convert to and enable staticfiles contrib application
This moves our site static files into the sitestatic directory if they
are shared resources, and also moves a handful of things (such as the
artwork logos) into application-specific static/ directories. This
allows the staticfiles contrib app to work after a few settings tweaks,
a run of collectstatic, and massaging the hardcoded '/media/' prefix out
of our templates.
Django 1.4 is going to make this a lot easier to move things to a CDN
and provides better template tags; for now this is setting the stage
before we can move to that.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/base.html b/templates/base.html index a120c537..0da77cf3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,13 +3,13 @@ <head> <title>{% block title %}Arch Linux{% endblock %}</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> - <link rel="stylesheet" type="text/css" href="/media/archweb.css" media="screen, projection" /> - <link rel="stylesheet" type="text/css" href="/media/archweb-print.css" media="print" /> - <link rel="icon" type="image/x-icon" href="/media/favicon.ico" /> - <link rel="shortcut icon" type="image/x-icon" href="/media/favicon.ico" /> - <link rel="apple-touch-icon" href="/media/logos/apple-touch-icon-57x57.png" /> - <link rel="apple-touch-icon" sizes="72x72" href="/media/logos/apple-touch-icon-72x72.png" /> - <link rel="apple-touch-icon" sizes="114x114" href="/media/logos/apple-touch-icon-114x114.png" /> + <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}archweb.css" media="screen, projection" /> + <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}archweb-print.css" media="print" /> + <link rel="icon" type="image/x-icon" href="{{ STATIC_URL }}favicon.ico" /> + <link rel="shortcut icon" type="image/x-icon" href="{{ STATIC_URL }}favicon.ico" /> + <link rel="apple-touch-icon" href="{{ STATIC_URL }}logos/apple-touch-icon-57x57.png" /> + <link rel="apple-touch-icon" sizes="72x72" href="{{ STATIC_URL }}logos/apple-touch-icon-72x72.png" /> + <link rel="apple-touch-icon" sizes="114x114" href="{{ STATIC_URL }}logos/apple-touch-icon-114x114.png" /> <link rel="search" type="application/opensearchdescription+xml" href="{% url opensearch-packages as osp %}{{ osp }}" title="Arch Linux Packages" /> {% block head %}{% endblock %} </head> |