django-rest-framework/docs
Walt Javins b4c7717cb8 Refactor login template to extend base.
While experimenting with extending DRF, I found that the login page
1) had no title, and 2) duplicated <head> info from base.html.

This change adds a new {% block body %} to the base.html template
which allows override of the entire html <body>. login_base.html
has its duplicated head info stripped, and now extends base.html
to share common html <head> templating.

As part of this change, pretify.css is unnecessarily added to
login_base.html.  If this is deemed a problem, it will be easy to
block that css out, and have login_base.html override the block.

Ideally, I would have liked to create a new api_base.html that extends
base.html, move the api specific logic into that template, and leave
base.html content agnostic, to truely be a unifying base for all DRF
pages.  But this change would break current apps that override
api.html and expect base.html to be the immediate super template. :/

This change is benificial because it:
 - removes duplication of header declarations (mostly css includes)
 - adds a html title to the login page
 - standardizes html header info across all DRF pages

Docs are updated to reflect the new structure.
2014-06-13 22:26:00 -07:00
..
api-guide Fix #1614 - Corrected reference to serializers.CharField 2014-06-10 15:20:45 -07:00
css Fix sidebar styling when browser window is too small 2013-06-26 23:26:35 +01:00
img New font in logo 2014-01-07 14:57:00 +00:00
js Tweak static files with docs 2012-10-09 14:12:38 +01:00
topics Refactor login template to extend base. 2014-06-13 22:26:00 -07:00
tutorial Replaced singular "is" by plural "are" 2014-05-06 15:08:53 +02:00
404.html Use www.django-rest-framework.org for docs instead of django-rest-framework.org due to issues with naked domains 2014-01-08 15:22:41 +00:00
index.md Tweak html for hidden h1 on homepage 2014-01-14 14:47:34 +00:00
requirements.txt Add basic serializer tests 2012-09-07 15:14:23 +01:00
template.html Link to BrightAPI, and remove ad except from frontpage 2014-01-03 13:24:52 +00:00