django-rest-framework/rest_framework
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
..
authtoken Fix missing message in ValidationError 2014-05-02 21:58:49 +01:00
runtests Don’t forget to setup django for 1.7+ as it’s not a regular django command. 2014-01-28 13:20:51 +01:00
static/rest_framework Browsable API tab preferences should be site-wide 2013-08-30 09:20:12 +01:00
templates/rest_framework Refactor login template to extend base. 2014-06-13 22:26:00 -07:00
templatetags Version 2.3.14 2014-06-12 11:47:26 +01:00
tests Fix _resolve_model to work with unicode strings 2014-05-22 15:18:51 -06:00
utils Fix dict_keys equality test for python 3. 2014-04-11 05:49:49 +01:00
__init__.py Version 2.3.14 2014-06-12 11:47:26 +01:00
authentication.py authentication: allow all transport modes of access token in OAuth2Authentication 2014-03-19 12:43:45 +01:00
compat.py Fixed #1624 (thanks @abraithwaite) 2014-06-08 09:03:21 +02:00
decorators.py Add notes on 'method' argument to '@action' decorator 2013-06-02 20:40:56 +01:00
exceptions.py add a __str__ implementation to APIException 2014-04-04 10:22:02 -04:00
fields.py Replace ChoiceField type_label 2014-06-05 12:49:02 +02:00
filters.py Add SEARCH_PARAM and ORDERING_PARAM to settings 2014-03-06 21:39:44 +00:00
generics.py Add the allow_add_remove parameter to the get_serializer method 2014-05-26 18:43:50 +02:00
mixins.py Tweak comment wrapping. 2014-02-18 12:30:55 +00:00
models.py Move models.resolve_model to serializers._resolve_model 2014-01-13 11:47:44 -05:00
negotiation.py Added proper charset support 2013-05-18 17:21:43 +01:00
pagination.py Cleanup docstrings 2013-04-25 12:47:34 +01:00
parsers.py Fixed convert bytes to str 2014-04-14 13:21:24 +04:00
permissions.py it's safe to import scope and constants 2014-03-06 20:21:44 +00:00
relations.py Adds test that blank option is added when required=False on RelatedFields 2014-04-09 15:51:00 +02:00
renderers.py Allow unicode YAML dump with UnicodeYAMLRenderer 2014-04-10 01:47:30 +02:00
request.py Fixed encoding parameter in QueryDict 2014-03-22 10:32:59 +01:00
response.py Remove Content-Type header from empty responses. Fixes #1196 2013-12-03 16:55:11 +00:00
reverse.py Cleanup imports 2013-02-04 20:55:35 +00:00
routers.py Add notes on lookup_prefix argument and why it's there even though unused by the default implementations. 2013-12-13 20:22:56 +00:00
serializers.py Fix _resolve_model to work with unicode strings 2014-05-22 15:18:51 -06:00
settings.py Add SEARCH_PARAM and ORDERING_PARAM to settings 2014-03-06 21:39:44 +00:00
six.py Py3k cleanup 2013-02-01 15:07:51 +00:00
status.py Version 2.3.10 2013-12-06 22:13:50 +00:00
test.py Always use specified content type in APIRequestFactory 2014-05-30 17:53:26 +02:00
throttling.py Merge pull request #1409 from tuky/patch-1 2014-04-30 21:38:21 +02:00
urlpatterns.py Update urlpatterns.py 2013-11-14 09:22:07 +01:00
urls.py Cleanup imports 2013-02-04 20:55:35 +00:00
views.py Typo in keywords arguments name 2014-03-04 16:32:34 +01:00
viewsets.py minor typo 2013-10-29 15:10:06 -05:00