diff --git a/docs/howto/static-files.txt b/docs/howto/static-files.txt index 9e6511a743..f93a4e9ba4 100644 --- a/docs/howto/static-files.txt +++ b/docs/howto/static-files.txt @@ -40,7 +40,7 @@ How to do it Here's the formal definition of the :func:`~django.views.static.serve` view: -.. function:: def serve(request, path, document_root, show_indexes=False): +.. function:: def serve(request, path, document_root, show_indexes=False) To use it, just put this in your :ref:`URLconf `:: diff --git a/docs/topics/pagination.txt b/docs/topics/pagination.txt index 4cb2fec565..70f087bd84 100644 --- a/docs/topics/pagination.txt +++ b/docs/topics/pagination.txt @@ -221,7 +221,7 @@ them both with a simple ``except InvalidPage``. ``Page`` objects ================ -.. class:: Page(object_list, number, paginator): +.. class:: Page(object_list, number, paginator) You usually won't construct :class:`Pages ` by hand -- you'll get them using :meth:`Paginator.page`.