diff --git a/docs/internals/contributing.txt b/docs/internals/contributing.txt index b96ed4360c..2c08bcd77b 100644 --- a/docs/internals/contributing.txt +++ b/docs/internals/contributing.txt @@ -411,7 +411,7 @@ Coding style Please follow these coding standards when writing code for inclusion in Django: - * Unless otherwise specified, follow :pep:8. + * Unless otherwise specified, follow :pep:`8`. You could use a tool like `pep8.py`_ to check for some problems in this area, but remember that PEP 8 is only a guide, so respect the style of diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt index ba7097dfa7..b328a34803 100644 --- a/docs/topics/db/models.txt +++ b/docs/topics/db/models.txt @@ -733,7 +733,7 @@ the resulting rows. For example:: :class:`connection ` and :class:`` mostly implement the standard Python -DB-API -- see :pep:249 -- with the addition of Django's :ref:`transaction +DB-API -- see :pep:`249` -- with the addition of Django's :ref:`transaction handling `. If you're not familiar with the Python DB-API, note that the SQL statement in :meth:`cursor.execute() ` uses placeholders, ``"%s"``, rather