diff options
| author | Tom Christie | 2012-02-20 07:26:34 -0800 |
|---|---|---|
| committer | Tom Christie | 2012-02-20 07:26:34 -0800 |
| commit | 2fea12c88f22f248381405040fa409e81c9fd4e6 (patch) | |
| tree | 9632eedaf35cb88c6e59ddd31814ce43ab57f994 /docs/howto/setup.rst | |
| parent | 87a9072b56cfe4f591c25c6c7992553759305600 (diff) | |
| parent | 50198935af1f772835a3c26943cbb245295c60e5 (diff) | |
| download | django-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.rst | 13 |
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 -------- |
