django-rest-framework/docs/topics
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
..
2.2-announcement.md 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
2.3-announcement.md Fixed typos in a bunch of docs 2013-08-07 14:00:06 -04:00
ajax-csrf-cors.md Minor documentation fix. 2013-09-29 12:49:38 +02:00
browsable-api.md Refactor login template to extend base. 2014-06-13 22:26:00 -07:00
browser-enhancements.md Fix md formatting and typos 2013-05-28 17:13:12 +02:00
contributing.md Fix link to tox 2014-02-28 16:35:03 -06:00
credits.md Update credits 2014-02-13 17:40:00 +00:00
documenting-your-api.md Fixed typos in a bunch of docs 2013-08-07 14:00:06 -04:00
release-notes.md Version 2.3.14 2014-06-12 11:47:26 +01:00
rest-framework-2-announcement.md Fix md formatting and typos 2013-05-28 17:13:12 +02:00
rest-hypermedia-hateoas.md Added 'Documenting your API' section. Closes #616 2013-07-02 22:15:46 +01:00
writable-nested-serializers.md Note on '.model' as default only, with 'serializer_class', and 'queryset' attributes prefered. Closes #1100 2013-09-12 21:41:21 +01:00