diff options
author | Stephen Finucane <stephenfinucane@hotmail.com> | 2015-04-07 22:20:53 +0100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2015-05-03 13:46:52 +0800 |
commit | d4a2c1f8792f52fec0c881ab38c91635840a50c0 (patch) | |
tree | f08cb31b6c2ad4a80bacbf9ba8a2b8b2b2cdca6d /templates/base.html | |
parent | c641660e041fdf932bad89681c167328ee85249a (diff) | |
download | patchwork-d4a2c1f8792f52fec0c881ab38c91635840a50c0.tar.bz2 patchwork-d4a2c1f8792f52fec0c881ab38c91635840a50c0.tar.xz |
Integrate 'django.contrib.staticfiles'
Rather than providing a custom solution for serving static files, use
the solution provided in the upstream Django source.
This allows us to remove the top-level 'urls.py' file.
Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/base.html b/templates/base.html index f04d6e1..3d289fb 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,12 +1,13 @@ -{% load pwurl %}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" +{% load staticfiles %} +{% load pwurl %} +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>{% block title %}Patchwork{% endblock %} - Patchwork</title> - <link rel="stylesheet" type="text/css" href="/css/style.css"/> - <script language="JavaScript" type="text/javascript" src="/js/common.js"> - </script> + <link rel="stylesheet" type="text/css" href="{% static "css/style.css" %}"/> + <script type="text/javascript" src="{% static "js/common.js" %}"></script> {% block headers %}{% endblock %} </head> <body> |