aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api-guide/authentication.html24
-rw-r--r--api-guide/content-negotiation.html24
-rw-r--r--api-guide/exceptions.html24
-rw-r--r--api-guide/fields.html24
-rw-r--r--api-guide/filtering.html28
-rw-r--r--api-guide/format-suffixes.html24
-rw-r--r--api-guide/generic-views.html24
-rw-r--r--api-guide/pagination.html24
-rw-r--r--api-guide/parsers.html24
-rw-r--r--api-guide/permissions.html27
-rw-r--r--api-guide/relations.html24
-rw-r--r--api-guide/renderers.html24
-rw-r--r--api-guide/requests.html24
-rw-r--r--api-guide/responses.html24
-rw-r--r--api-guide/reverse.html24
-rw-r--r--api-guide/routers.html24
-rw-r--r--api-guide/serializers.html24
-rw-r--r--api-guide/settings.html24
-rw-r--r--api-guide/status-codes.html24
-rw-r--r--api-guide/testing.html24
-rw-r--r--api-guide/throttling.html24
-rw-r--r--api-guide/views.html24
-rw-r--r--api-guide/viewsets.html24
-rw-r--r--index.html28
-rw-r--r--topics/2.2-announcement.html24
-rw-r--r--topics/2.3-announcement.html24
-rw-r--r--topics/ajax-csrf-cors.html24
-rw-r--r--topics/browsable-api.html24
-rw-r--r--topics/browser-enhancements.html24
-rw-r--r--topics/contributing.html24
-rw-r--r--topics/credits.html24
-rw-r--r--topics/documenting-your-api.html24
-rw-r--r--topics/release-notes.html24
-rw-r--r--topics/rest-framework-2-announcement.html24
-rw-r--r--topics/rest-hypermedia-hateoas.html24
-rw-r--r--topics/writable-nested-serializers.html24
-rw-r--r--tutorial/1-serialization.html24
-rw-r--r--tutorial/2-requests-and-responses.html24
-rw-r--r--tutorial/3-class-based-views.html24
-rw-r--r--tutorial/4-authentication-and-permissions.html24
-rw-r--r--tutorial/5-relationships-and-hyperlinked-apis.html24
-rw-r--r--tutorial/6-viewsets-and-routers.html24
-rw-r--r--tutorial/quickstart.html24
43 files changed, 823 insertions, 220 deletions
diff --git a/api-guide/authentication.html b/api-guide/authentication.html
index 89091469..bc61cdd2 100644
--- a/api-guide/authentication.html
+++ b/api-guide/authentication.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="authentication-page">
@@ -189,11 +204,9 @@
<li><a href="#hawk-http-authentication">Hawk HTTP Authentication</a></li>
<li><a href="#http-signature-authentication">HTTP Signature Authentication</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -505,6 +518,7 @@ class ExampleAuthentication(authentication.BaseAuthentication):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/content-negotiation.html b/api-guide/content-negotiation.html
index c9b21cbe..db159e54 100644
--- a/api-guide/content-negotiation.html
+++ b/api-guide/content-negotiation.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="content-negotiation-page">
@@ -174,11 +189,9 @@
<li><a href="#example">Example</a></li>
<li><a href="#setting-the-content-negotiation">Setting the content negotiation</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -276,6 +289,7 @@ class NoNegotiationView(APIView):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/exceptions.html b/api-guide/exceptions.html
index db3d1180..2a2cc10d 100644
--- a/api-guide/exceptions.html
+++ b/api-guide/exceptions.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="exceptions-page">
@@ -181,11 +196,9 @@
<li><a href="#unsupportedmediatype">UnsupportedMediaType</a></li>
<li><a href="#throttled">Throttled</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -313,6 +326,7 @@ class ServiceUnavailable(APIException):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/fields.html b/api-guide/fields.html
index 49e356e7..ea762351 100644
--- a/api-guide/fields.html
+++ b/api-guide/fields.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="fields-page">
@@ -196,11 +211,9 @@
<li class="main"><a href="#third-party-packages">Third party packages</a></li>
<li><a href="#drf-compound-fields">DRF Compound Fields</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -459,6 +472,7 @@ class ColourField(serializers.WritableField):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/filtering.html b/api-guide/filtering.html
index 76b18e00..741be369 100644
--- a/api-guide/filtering.html
+++ b/api-guide/filtering.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="filtering-page">
@@ -186,11 +201,9 @@
<li class="main"><a href="#third-party-packages">Third party packages</a></li>
<li><a href="#django-rest-framework-chain">Django REST framework chain</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -355,15 +368,13 @@ class ProductFilter(django_filters.FilterSet):
<p>This enables us to make queries like:</p>
<pre class="prettyprint lang-py"><code>http://example.com/api/products?manufacturer__name=foo
</code></pre>
-<p>This is nice, but it shows underlying model structure in REST API, which may
-be undesired, but you can use:</p>
+<p>This is nice, but it exposes the Django's double underscore convention as part of the API. If you instead want to explicitly name the filter argument you can instead explicitly include it on the <code>FilterSet</code> class:</p>
<pre class="prettyprint lang-py"><code>import django_filters
from myapp.models import Product
from myapp.serializers import ProductSerializer
from rest_framework import generics
class ProductFilter(django_filters.FilterSet):
-
manufacturer = django_filters.CharFilter(name="manufacturer__name")
class Meta:
@@ -520,6 +531,7 @@ class ProductFilter(django_filters.FilterSet):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/format-suffixes.html b/api-guide/format-suffixes.html
index 8e256e4a..47fcdc0f 100644
--- a/api-guide/format-suffixes.html
+++ b/api-guide/format-suffixes.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="format-suffixes-page">
@@ -172,11 +187,9 @@
<li><a href="#format_suffix_patterns">format_suffix_patterns</a></li>
<li><a href="#accept-headers-vs-format-suffixes">Accept headers vs. format suffixes</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -251,6 +264,7 @@ def comment_list(request, format=None):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/generic-views.html b/api-guide/generic-views.html
index 03a70c6c..d02d70de 100644
--- a/api-guide/generic-views.html
+++ b/api-guide/generic-views.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="generic-views-page">
@@ -194,11 +209,9 @@
<li class="main"><a href="#third-party-packages">Third party packages</a></li>
<li><a href="#django-rest-framework-bulk">Django REST Framework bulk</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -475,6 +488,7 @@ class BaseRetrieveUpdateDestroyView(MultipleFieldLookupMixin,
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/pagination.html b/api-guide/pagination.html
index c83a78ee..9ff95a14 100644
--- a/api-guide/pagination.html
+++ b/api-guide/pagination.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="pagination-page">
@@ -178,11 +193,9 @@
<li class="main"><a href="#third-party-packages">Third party packages</a></li>
<li><a href="#drf-extensions">DRF-extensions</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -334,6 +347,7 @@ class CustomPaginationSerializer(pagination.BasePaginationSerializer):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/parsers.html b/api-guide/parsers.html
index c171eff9..c4c7ae63 100644
--- a/api-guide/parsers.html
+++ b/api-guide/parsers.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="parsers-page">
@@ -184,11 +199,9 @@
<li><a href="#messagepack">MessagePack</a></li>
<li><a href="#camelcase-json">CamelCase JSON</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -340,6 +353,7 @@ def parse(self, stream, media_type=None, parser_context=None):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/permissions.html b/api-guide/permissions.html
index 5422ae35..d60b143b 100644
--- a/api-guide/permissions.html
+++ b/api-guide/permissions.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="permissions-page">
@@ -187,11 +202,9 @@
<li><a href="#composed-permissions">Composed Permissions</a></li>
<li><a href="#rest-condition">REST Condition</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -223,6 +236,9 @@ or if you override the <code>get_object</code> method on a generic view, then yo
self.check_object_permissions(self.request, obj)
return obj
</code></pre>
+<h4 id="limitations-of-object-level-permissions">Limitations of object level permissions</h4>
+<p>For performance reasons the generic views will not automatically apply object level permissions to each instance in a queryset when returning a list of objects.</p>
+<p>Often when you're using object level permissions you'll also want to <a href="filtering">filter the queryset</a> appropriately, to ensure that users only have visibility onto instances that they are permitted to view.</p>
<h2 id="setting-the-permission-policy">Setting the permission policy</h2>
<p>The default permission policy may be set globally, using the <code>DEFAULT_PERMISSION_CLASSES</code> setting. For example.</p>
<pre class="prettyprint lang-py"><code>REST_FRAMEWORK = {
@@ -383,6 +399,7 @@ class BlacklistPermission(permissions.BasePermission):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/relations.html b/api-guide/relations.html
index 35a7854d..5793b150 100644
--- a/api-guide/relations.html
+++ b/api-guide/relations.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="relations-page">
@@ -188,11 +203,9 @@
<li class="main"><a href="#third-party-packages">Third Party Packages</a></li>
<li><a href="#drf-nested-routers">DRF Nested Routers</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -584,6 +597,7 @@ In the 2.4 release, these parts of the API will be removed entirely.</p>
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/renderers.html b/api-guide/renderers.html
index 75b8aee5..f7691952 100644
--- a/api-guide/renderers.html
+++ b/api-guide/renderers.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="renderers-page">
@@ -198,11 +213,9 @@
<li><a href="#ultrajson">UltraJSON</a></li>
<li><a href="#camelcase-json">CamelCase JSON</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -523,6 +536,7 @@ In this case you can underspecify the media types it should respond to, by using
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/requests.html b/api-guide/requests.html
index 0bff2635..588e6ba4 100644
--- a/api-guide/requests.html
+++ b/api-guide/requests.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="requests-page">
@@ -184,11 +199,9 @@
<li><a href="#stream">.stream</a></li>
<li class="main"><a href="#standard-httprequest-attributes">Standard HttpRequest attributes</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -282,6 +295,7 @@
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/responses.html b/api-guide/responses.html
index 8aa50d53..52f8b223 100644
--- a/api-guide/responses.html
+++ b/api-guide/responses.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="responses-page">
@@ -182,11 +197,9 @@
<li class="main"><a href="#standard-httpresponse-attributes">Standard HttpResponse attributes</a></li>
<li><a href="#render()">.render()</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -265,6 +278,7 @@ response['Cache-Control'] = 'no-cache'
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/reverse.html b/api-guide/reverse.html
index 8e0e287d..d26f8956 100644
--- a/api-guide/reverse.html
+++ b/api-guide/reverse.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="reverse-page">
@@ -172,11 +187,9 @@
<li><a href="#reverse">reverse</a></li>
<li><a href="#reverse_lazy">reverse_lazy</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -240,6 +253,7 @@ class APIRootView(APIView):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/routers.html b/api-guide/routers.html
index 03568f2b..a0614330 100644
--- a/api-guide/routers.html
+++ b/api-guide/routers.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="routers-page">
@@ -181,11 +196,9 @@
<li><a href="#wqdb">wq.db</a></li>
<li><a href="#drf-extensions">DRF-extensions</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -354,6 +367,7 @@ app.router.register_model(MyModel)
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/serializers.html b/api-guide/serializers.html
index ae5b2c36..89688c33 100644
--- a/api-guide/serializers.html
+++ b/api-guide/serializers.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="serializers-page">
@@ -191,11 +206,9 @@
<li><a href="#dynamically-modifying-fields">Dynamically modifying fields</a></li>
<li><a href="#customising-the-default-fields">Customising the default fields</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -666,6 +679,7 @@ The <code>ModelSerializer</code> class lets you automatically create a Serialize
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/settings.html b/api-guide/settings.html
index b436bd99..6e7d067f 100644
--- a/api-guide/settings.html
+++ b/api-guide/settings.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="settings-page">
@@ -180,11 +195,9 @@
<li><a href="#view-names-and-descriptions">View names and descriptions</a></li>
<li><a href="#miscellaneous-settings">Miscellaneous settings</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -438,6 +451,7 @@ If set to <code>None</code> then generic filtering is disabled.</p>
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/status-codes.html b/api-guide/status-codes.html
index eb584f89..c5e0c669 100644
--- a/api-guide/status-codes.html
+++ b/api-guide/status-codes.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="status-codes-page">
@@ -176,11 +191,9 @@
<li><a href="#server-error---5xx">Server Error - 5xx</a></li>
<li><a href="#helper-functions">Helper functions</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -300,6 +313,7 @@ is_server_error() # 5xx
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/testing.html b/api-guide/testing.html
index 74789fcb..78107f73 100644
--- a/api-guide/testing.html
+++ b/api-guide/testing.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="testing-page">
@@ -186,11 +201,9 @@
<li><a href="#setting-the-default-format">Setting the default format</a></li>
<li><a href="#setting-the-available-formats">Setting the available formats</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -412,6 +425,7 @@ self.assertEqual(response.content, '{"username": "lauren", "id": 4}')
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/throttling.html b/api-guide/throttling.html
index d22d0b70..4057039c 100644
--- a/api-guide/throttling.html
+++ b/api-guide/throttling.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="throttling-page">
@@ -179,11 +194,9 @@
<li class="main"><a href="#custom-throttles">Custom throttles</a></li>
<li><a href="#example">Example</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -344,6 +357,7 @@ class UploadView(APIView):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/views.html b/api-guide/views.html
index c8519b84..6f8cbc78 100644
--- a/api-guide/views.html
+++ b/api-guide/views.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="views-page">
@@ -177,11 +192,9 @@
<li><a href="#@api_view()">@api_view()</a></li>
<li><a href="#api-policy-decorators">API policy decorators</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -321,6 +334,7 @@ def view(request):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/api-guide/viewsets.html b/api-guide/viewsets.html
index 73536a1d..e0c62bbb 100644
--- a/api-guide/viewsets.html
+++ b/api-guide/viewsets.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="viewsets-page">
@@ -179,11 +194,9 @@
<li class="main"><a href="#custom-viewset-base-classes">Custom ViewSet base classes</a></li>
<li><a href="#example">Example</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -398,6 +411,7 @@ class UserViewSet(viewsets.ModelViewSet):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/index.html b/index.html
index d86d9540..0f65676b 100644
--- a/index.html
+++ b/index.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="index-page">
@@ -181,12 +196,10 @@
<li><a href="#security">Security</a></li>
<li><a href="#license">License</a></li>
- <div>
-
-<hr><p><strong>The team behind REST framework is launching a new API service.</strong></p>
-<p>If you want to be first in line when we start issuing invitations, please <a href="http://brightapi.com">sign up here</a>.</p>
-
-</div>
+ <div class="promo">
+ <hr/>
+ <script type="text/javascript" src="//cdn.fusionads.net/fusion.js?zoneid=1332&serve=C6SDP2Y&placement=djangorestframework" id="_fusionads_js"></script>
+ </div>
</ul>
</div>
@@ -227,7 +240,7 @@
<li><a href="api-guide/authentication">Authentication policies</a> including <a href="api-guide/authentication#oauthauthentication">OAuth1a</a> and <a href="api-guide/authentication#oauth2authentication">OAuth2</a> out of the box.</li>
<li><a href="api-guide/serializers">Serialization</a> that supports both <a href="api-guide/serializers#modelserializer">ORM</a> and <a href="api-guide/serializers#serializers">non-ORM</a> data sources.</li>
<li>Customizable all the way down - just use <a href="api-guide/views#function-based-views">regular function-based views</a> if you don't need the <a href="api-guide/generic-views">more</a> <a href="api-guide/viewsets">powerful</a> <a href="api-guide/routers">features</a>.</li>
-<li><a href=".">Extensive documentation</a>, <a href="https://groups.google.com/forum/?fromgroups#!forum/django-rest-framework">great community support</a>, and a growing <a href="https://www.djangopackages.com/grids/g/django-rest-framework/">package ecosystem</a>.</li>
+<li><a href=".">Extensive documentation</a>, and <a href="https://groups.google.com/forum/?fromgroups#!forum/django-rest-framework">great community support</a>.</li>
<li>Used and trusted by large companies such as <a href="http://www.mozilla.org/en-US/about/">Mozilla</a> and <a href="https://www.eventbrite.co.uk/about/">Eventbrite</a>.</li>
</ul>
<hr />
@@ -431,6 +444,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/topics/2.2-announcement.html b/topics/2.2-announcement.html
index fae1d752..98550402 100644
--- a/topics/2.2-announcement.html
+++ b/topics/2.2-announcement.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="2.2-announcement-page">
@@ -174,11 +189,9 @@
<li><a href="#community">Community</a></li>
<li><a href="#api-changes">API changes</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -311,6 +324,7 @@ serializer.data
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/topics/2.3-announcement.html b/topics/2.3-announcement.html
index f5583e6f..e4250f84 100644
--- a/topics/2.3-announcement.html
+++ b/topics/2.3-announcement.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="2.3-announcement-page">
@@ -186,11 +201,9 @@
<li><a href="#version-22-api-changes">Version 2.2 API changes</a></li>
<li><a href="#what-comes-next">What comes next?</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -404,6 +417,7 @@ urlpatterns = patterns('',
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/topics/ajax-csrf-cors.html b/topics/ajax-csrf-cors.html
index 6b93db6b..686c7374 100644
--- a/topics/ajax-csrf-cors.html
+++ b/topics/ajax-csrf-cors.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="ajax-csrf-cors-page">
@@ -173,11 +188,9 @@
<li><a href="#csrf-protection">CSRF protection</a></li>
<li><a href="#cors">CORS</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -224,6 +237,7 @@
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/topics/browsable-api.html b/topics/browsable-api.html
index c62f3d79..ac2afc5a 100644
--- a/topics/browsable-api.html
+++ b/topics/browsable-api.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="browsable-api-page">
@@ -173,11 +188,9 @@
<li><a href="#formats">Formats</a></li>
<li><a href="#customizing">Customizing</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -318,6 +331,7 @@ class BookSerializer(serializers.ModelSerializer):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/topics/browser-enhancements.html b/topics/browser-enhancements.html
index 9ccd9689..670a6f68 100644
--- a/topics/browser-enhancements.html
+++ b/topics/browser-enhancements.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="browser-enhancements-page">
@@ -176,11 +191,9 @@
<li><a href="#url-based-format-suffixes">URL based format suffixes</a></li>
<li><a href="#doesnt-html5-support-put-and-delete-forms">Doesn't HTML5 support PUT and DELETE forms?</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -258,6 +271,7 @@ as well as how to support content types other than form-encoded data.</p>
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/topics/contributing.html b/topics/contributing.html
index 6da9761c..43618768 100644
--- a/topics/contributing.html
+++ b/topics/contributing.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="contributing-page">
@@ -185,11 +200,9 @@
<li><a href="#getting-started">Getting started</a></li>
<li><a href="#linking-to-your-package">Linking to your package</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -335,6 +348,7 @@ More text...
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/topics/credits.html b/topics/credits.html
index a3c851c0..48d6f340 100644
--- a/topics/credits.html
+++ b/topics/credits.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="credits-page">
@@ -172,11 +187,9 @@
<li><a href="#additional-thanks">Additional thanks</a></li>
<li><a href="#contact">Contact</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -397,6 +410,7 @@
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/topics/documenting-your-api.html b/topics/documenting-your-api.html
index e32002de..d3b8739b 100644
--- a/topics/documenting-your-api.html
+++ b/topics/documenting-your-api.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="documenting-your-api-page">
@@ -173,11 +188,9 @@
<li><a href="#self-describing-apis">Self describing APIs</a></li>
<li><a href="#the-hypermedia-approach">The hypermedia approach</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -263,6 +276,7 @@
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/topics/release-notes.html b/topics/release-notes.html
index 7df9c4f6..5dfc95af 100644
--- a/topics/release-notes.html
+++ b/topics/release-notes.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="release-notes-page">
@@ -181,11 +196,9 @@
<li><a href="#02x-series">0.2.x series</a></li>
<li><a href="#01x-series">0.1.x series</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -801,6 +814,7 @@
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/topics/rest-framework-2-announcement.html b/topics/rest-framework-2-announcement.html
index b673c6bd..7e6652bc 100644
--- a/topics/rest-framework-2-announcement.html
+++ b/topics/rest-framework-2-announcement.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="rest-framework-2-announcement-page">
@@ -178,11 +193,9 @@
<li><a href="#documentation">Documentation</a></li>
<li><a href="#summary">Summary</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -259,6 +272,7 @@
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/topics/rest-hypermedia-hateoas.html b/topics/rest-hypermedia-hateoas.html
index 4d1e0986..d9c63dae 100644
--- a/topics/rest-hypermedia-hateoas.html
+++ b/topics/rest-hypermedia-hateoas.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="rest-hypermedia-hateoas-page">
@@ -173,11 +188,9 @@
<li><a href="#what-rest-framework-provides">What REST framework provides.</a></li>
<li><a href="#what-rest-framework-doesnt-provide">What REST framework doesn't provide.</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -227,6 +240,7 @@ the Design of Network-based Software Architectures</a>.</li>
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/topics/writable-nested-serializers.html b/topics/writable-nested-serializers.html
index e33c96b2..8eef4880 100644
--- a/topics/writable-nested-serializers.html
+++ b/topics/writable-nested-serializers.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="writable-nested-serializers-page">
@@ -171,11 +186,9 @@
<li class="main"><a href="#writable-nested-serializers">Writable nested serializers</a></li>
<li><a href="#one-to-many-data-structures">One-to-many data structures</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -235,6 +248,7 @@ class ToDoListSerializer(serializers.ModelSerializer):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/tutorial/1-serialization.html b/tutorial/1-serialization.html
index 9eab9dae..b8bb8e72 100644
--- a/tutorial/1-serialization.html
+++ b/tutorial/1-serialization.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="1-serialization-page">
@@ -180,11 +195,9 @@
<li><a href="#testing-our-first-attempt-at-a-web-api">Testing our first attempt at a Web API</a></li>
<li><a href="#where-are-we-now">Where are we now</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -499,6 +512,7 @@ Quit the server with CONTROL-C.
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/tutorial/2-requests-and-responses.html b/tutorial/2-requests-and-responses.html
index 11405143..9d7a0626 100644
--- a/tutorial/2-requests-and-responses.html
+++ b/tutorial/2-requests-and-responses.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="2-requests-and-responses-page">
@@ -178,11 +193,9 @@
<li><a href="#hows-it-looking">How's it looking?</a></li>
<li><a href="#whats-next">What's next?</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -338,6 +351,7 @@ curl -X POST http://127.0.0.1:8000/snippets/ -d '{"code": "print 456"}' -H "Cont
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/tutorial/3-class-based-views.html b/tutorial/3-class-based-views.html
index b6f4137a..601d9960 100644
--- a/tutorial/3-class-based-views.html
+++ b/tutorial/3-class-based-views.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="3-class-based-views-page">
@@ -173,11 +188,9 @@
<li><a href="#using-mixins">Using mixins</a></li>
<li><a href="#using-generic-class-based-views">Using generic class based views</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -331,6 +344,7 @@ class SnippetDetail(generics.RetrieveUpdateDestroyAPIView):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/tutorial/4-authentication-and-permissions.html b/tutorial/4-authentication-and-permissions.html
index 923a2c67..6dd45e3c 100644
--- a/tutorial/4-authentication-and-permissions.html
+++ b/tutorial/4-authentication-and-permissions.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="4-authentication-and-permissions-page">
@@ -179,11 +194,9 @@
<li><a href="#authenticating-with-the-api">Authenticating with the API</a></li>
<li><a href="#summary">Summary</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -367,6 +380,7 @@ class IsOwnerOrReadOnly(permissions.BasePermission):
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/tutorial/5-relationships-and-hyperlinked-apis.html b/tutorial/5-relationships-and-hyperlinked-apis.html
index 276c1d69..843d25b7 100644
--- a/tutorial/5-relationships-and-hyperlinked-apis.html
+++ b/tutorial/5-relationships-and-hyperlinked-apis.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="5-relationships-and-hyperlinked-apis-page">
@@ -176,11 +191,9 @@
<li><a href="#adding-pagination">Adding pagination</a></li>
<li><a href="#browsing-the-api">Browsing the API</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -333,6 +346,7 @@ urlpatterns += patterns('',
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/tutorial/6-viewsets-and-routers.html b/tutorial/6-viewsets-and-routers.html
index 5422f7ea..11016a1c 100644
--- a/tutorial/6-viewsets-and-routers.html
+++ b/tutorial/6-viewsets-and-routers.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="6-viewsets-and-routers-page">
@@ -176,11 +191,9 @@
<li><a href="#reviewing-our-work">Reviewing our work</a></li>
<li><a href="#onwards-and-upwards">Onwards and upwards</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -322,6 +335,7 @@ urlpatterns = patterns('',
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };
diff --git a/tutorial/quickstart.html b/tutorial/quickstart.html
index b94e976e..78a85226 100644
--- a/tutorial/quickstart.html
+++ b/tutorial/quickstart.html
@@ -33,6 +33,21 @@
})();
</script>
+ <style>
+span.fusion-wrap a {
+ display: block;
+ margin-top: 10px;
+ color: black;
+}
+
+a.fusion-poweredby {
+ display: block;
+ margin-top: 10px;
+}
+@media (max-width: 767px) {
+ div.promo {display: none;}
+}
+</style>
</head>
<body onload="prettyPrint()" class="quickstart-page">
@@ -176,11 +191,9 @@
<li><a href="#settings">Settings</a></li>
<li><a href="#testing-our-api">Testing our API</a></li>
- <div>
-
-
-
-</div>
+ <div class="promo">
+
+ </div>
</ul>
</div>
@@ -348,6 +361,7 @@ REST_FRAMEWORK = {
<script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script>
<script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script>
<script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script>
+
<script>
//$('.side-nav').scrollspy()
var shiftWindow = function() { scrollBy(0, -50) };