Commit a9fbf073 authored by Tim Graham's avatar Tim Graham
Browse files

[1.9.x] Fixed #26124 -- Added missing code formatting to docs headers.

Backport of a6ef025d from master
parent d7a60868
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
====================================
Writing custom django-admin commands
====================================
========================================
Writing custom ``django-admin`` commands
========================================

.. module:: django.core.management

@@ -378,8 +378,8 @@ the :meth:`~BaseCommand.handle` method must be implemented.

.. _ref-basecommand-subclasses:

BaseCommand subclasses
----------------------
``BaseCommand`` subclasses
--------------------------

.. class:: AppCommand

+4 −4
Original line number Diff line number Diff line
@@ -25,8 +25,8 @@ version >= 2.2 and mod_wsgi >= 2.0. For example, you could:
.. _Subversion: http://subversion.tigris.org/
.. _mod_dav: https://httpd.apache.org/docs/2.2/mod/mod_dav.html

Authentication with mod_wsgi
============================
Authentication with ``mod_wsgi``
================================

.. note::

@@ -100,8 +100,8 @@ details and information about alternative methods of authentication.
.. _Defining Application Groups: https://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines#Defining_Application_Groups
.. _access control mechanisms documentation: https://code.google.com/p/modwsgi/wiki/AccessControlMechanisms

Authorization with mod_wsgi and Django groups
---------------------------------------------
Authorization with ``mod_wsgi`` and Django groups
-------------------------------------------------

mod_wsgi also provides functionality to restrict a particular location to
members of a group.
+7 −7
Original line number Diff line number Diff line
==========================================
How to use Django with Apache and mod_wsgi
==========================================
==============================================
How to use Django with Apache and ``mod_wsgi``
==============================================

Deploying Django with Apache_ and `mod_wsgi`_ is a tried and tested way to get
Django into production.
@@ -91,8 +91,8 @@ should put in this file, and what else you can add to it.
    See the :ref:`unicode-files` section of the Unicode reference guide for
    details.

Using a virtualenv
==================
Using a ``virtualenv``
======================

If you install your project's Python dependencies inside a `virtualenv`_,
you'll need to add the path to this virtualenv's ``site-packages`` directory to
@@ -113,8 +113,8 @@ Make sure you give the correct path to your virtualenv, and replace

.. _daemon-mode:

Using mod_wsgi daemon mode
==========================
Using ``mod_wsgi`` daemon mode
==============================

"Daemon mode" is the recommended mode for running mod_wsgi (on non-Windows
platforms). To create the required daemon process group and delegate the
+2 −2
Original line number Diff line number Diff line
@@ -29,8 +29,8 @@ matches the version you installed by executing::

    python --version

About pip
=========
About ``pip``
=============

`pip`_ is a package manage for Python. It makes installing and uninstalling
Python packages (such as Django!) very easy. For the rest of the installation,
+6 −7
Original line number Diff line number Diff line
@@ -322,8 +322,8 @@ with the admin site:
* **admin.E035**: The value of ``readonly_fields[n]`` is not a callable, an
  attribute of ``<ModelAdmin class>``, or an attribute of ``<model>``.

ModelAdmin
~~~~~~~~~~
``ModelAdmin``
~~~~~~~~~~~~~~

The following checks are performed on any
:class:`~django.contrib.admin.ModelAdmin` that is registered
@@ -378,8 +378,8 @@ with the admin site:
* **admin.E128**: The value of ``date_hierarchy`` must be a ``DateField`` or
  ``DateTimeField``.

InlineModelAdmin
~~~~~~~~~~~~~~~~
``InlineModelAdmin``
~~~~~~~~~~~~~~~~~~~~

The following checks are performed on any
:class:`~django.contrib.admin.InlineModelAdmin` that is registered as an
@@ -395,8 +395,8 @@ inline on a :class:`~django.contrib.admin.ModelAdmin`.
* **admin.E206**: The value of ``formset`` must inherit from
  ``BaseModelFormSet``.

GenericInlineModelAdmin
~~~~~~~~~~~~~~~~~~~~~~~
``GenericInlineModelAdmin``
~~~~~~~~~~~~~~~~~~~~~~~~~~~

The following checks are performed on any
:class:`~django.contrib.contenttypes.admin.GenericInlineModelAdmin` that is
@@ -410,7 +410,6 @@ registered as an inline on a :class:`~django.contrib.admin.ModelAdmin`.
* **admin.E304**: ``<model>`` has no ``GenericForeignKey`` using content type
  field ``<field name>`` and object ID field ``<field name>``.


Auth
----

Loading