diff options
author | Dan McGee <dan@archlinux.org> | 2011-12-06 06:06:10 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-12-06 06:06:10 +0100 |
commit | 943ef2e8e436a32ce5dc956c4d855866cd644cc1 (patch) | |
tree | 870f68873a61bcceff00e27b692abaef7542c991 /templates/todolists | |
parent | 1c23308299f33e5b429899463eb207f07ad51403 (diff) | |
download | archweb-943ef2e8e436a32ce5dc956c4d855866cd644cc1.tar.gz archweb-943ef2e8e436a32ce5dc956c4d855866cd644cc1.tar.xz |
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/todolists')
-rw-r--r-- | templates/todolists/list.html | 3 | ||||
-rw-r--r-- | templates/todolists/public_list.html | 4 | ||||
-rw-r--r-- | templates/todolists/view.html | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/templates/todolists/list.html b/templates/todolists/list.html index 7d22927..b829a12 100644 --- a/templates/todolists/list.html +++ b/templates/todolists/list.html @@ -43,7 +43,8 @@ </table> </div> {% load cdn %}{% jquery %} -<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script> +<script type="text/javascript" src="{{ STATIC_URL }}jquery.tablesorter.min.js"></script> +<script type="text/javascript" src="{{ STATIC_URL }}archweb.js"></script> <script type="text/javascript"> $(document).ready(function() { // I'm not sure why it didn't autodetect digit, but it has to be explicit diff --git a/templates/todolists/public_list.html b/templates/todolists/public_list.html index c305486..b1d0453 100644 --- a/templates/todolists/public_list.html +++ b/templates/todolists/public_list.html @@ -65,11 +65,11 @@ </div> {% endif %} {% load cdn %}{% jquery %} -<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script> +<script type="text/javascript" src="{{ STATIC_URL }}jquery.tablesorter.min.js"></script> +<script type="text/javascript" src="{{ STATIC_URL }}archweb.js"></script> <script type="text/javascript"> $(document).ready(function() { $(".results").tablesorter({widgets: ['zebra'], sortList: [[0,0], [1,0]]}); }); - </script> {% endblock %} diff --git a/templates/todolists/view.html b/templates/todolists/view.html index c9ea919..6516f73 100644 --- a/templates/todolists/view.html +++ b/templates/todolists/view.html @@ -59,8 +59,8 @@ </table> </div> {% load cdn %}{% jquery %} -<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script> -<script type="text/javascript" src="/media/archweb.js"></script> +<script type="text/javascript" src="{{ STATIC_URL }}jquery.tablesorter.min.js"></script> +<script type="text/javascript" src="{{ STATIC_URL }}archweb.js"></script> <script type="text/javascript"> $(document).ready(function() { $('a.status-link').click(todolist_flag); |