From 5ae7786930ea0e6ec35f81ca7a38f36a80a4c6b7 Mon Sep 17 00:00:00 2001 From: Roman Akinfold Date: Thu, 27 Dec 2012 05:35:03 +0800 Subject: [PATCH] Replace get_static_prefix templatetag with static so now static files urls in html view are correct if we use cloud storage to serve static files --- .../templates/rest_framework/base.html | 18 +++++++++--------- .../templates/rest_framework/login.html | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html index fb0e19f05..0e09e5068 100644 --- a/rest_framework/templates/rest_framework/base.html +++ b/rest_framework/templates/rest_framework/base.html @@ -1,6 +1,6 @@ {% load url from future %} {% load rest_framework %} -{% load static %} +{% load staticfiles %} @@ -14,10 +14,10 @@ {% block title %}Django REST framework{% endblock %} {% block style %} - - - - + + + + {% endblock %} {% endblock %} @@ -195,10 +195,10 @@ {% endblock %} {% block script %} - - - - + + + + {% endblock %} diff --git a/rest_framework/templates/rest_framework/login.html b/rest_framework/templates/rest_framework/login.html index c1271399b..3681a1583 100644 --- a/rest_framework/templates/rest_framework/login.html +++ b/rest_framework/templates/rest_framework/login.html @@ -1,11 +1,11 @@ {% load url from future %} -{% load static %} +{% load staticfiles %} - - - + + +