aboutsummaryrefslogtreecommitdiffstats
path: root/docs/howto/setup.rst
diff options
context:
space:
mode:
authorTom Christie2012-02-20 07:26:34 -0800
committerTom Christie2012-02-20 07:26:34 -0800
commit2fea12c88f22f248381405040fa409e81c9fd4e6 (patch)
tree9632eedaf35cb88c6e59ddd31814ce43ab57f994 /docs/howto/setup.rst
parent87a9072b56cfe4f591c25c6c7992553759305600 (diff)
parent50198935af1f772835a3c26943cbb245295c60e5 (diff)
downloaddjango-rest-framework-2fea12c88f22f248381405040fa409e81c9fd4e6.tar.bz2
Merge pull request #168 from poswald/namespace-templates
Namespace templates
Diffstat (limited to 'docs/howto/setup.rst')
-rw-r--r--docs/howto/setup.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/howto/setup.rst b/docs/howto/setup.rst
index 22f98f0c..64b58262 100644
--- a/docs/howto/setup.rst
+++ b/docs/howto/setup.rst
@@ -29,6 +29,19 @@ but once you move onto a production server, you'll want to make sure you serve t
* Ensure that the ``ADMIN_MEDIA_PREFIX`` is set appropriately and that you are serving the admin media.
(Django's testserver will automatically serve the admin media for you)
+You may customize the templates by creating a new template called ``djangorestframework/api.html``
+in your project, extend ``djangorestframework/base.html`` and override the
+appropriate ``{% block tags %}``. For example::
+
+ {% extends "djangorestframework/base.html" %}
+
+ {% block title %}My API{% endblock %}
+
+ {% block branding %}
+ <h1 id="site-name">My API</h1>
+ {% endblock %}
+
+
Markdown
--------