summaryrefslogtreecommitdiff
path: root/docs/ref/django-admin.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/django-admin.txt')
-rw-r--r--docs/ref/django-admin.txt46
1 files changed, 29 insertions, 17 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 0918f5c1f4..6d0993c7f0 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -1,5 +1,3 @@
-.. _ref-django-admin:
-
=============================
django-admin.py and manage.py
=============================
@@ -104,9 +102,9 @@ compilemessages
Before 1.0 this was the "bin/compile-messages.py" command.
Compiles .po files created with ``makemessages`` to .mo files for use with
-the builtin gettext support. See :ref:`topics-i18n`.
+the builtin gettext support. See :doc:`/topics/i18n/index`.
-Use the :djadminopt:`--locale`` option to specify the locale to process.
+Use the :djadminopt:`--locale` option to specify the locale to process.
If not provided, all locales are processed.
Example usage::
@@ -119,7 +117,7 @@ createcachetable
.. django-admin:: createcachetable
Creates a cache table named ``tablename`` for use with the database cache
-backend. See :ref:`topics-cache` for more information.
+backend. See :doc:`/topics/cache` for more information.
.. versionadded:: 1.2
@@ -151,8 +149,8 @@ using the ``--username`` and ``--email`` arguments on the command
line. If either of those is not supplied, ``createsuperuser`` will prompt for
it when running interactively.
-This command is only available if Django's :ref:`authentication system
-<topics-auth>` (``django.contrib.auth``) is installed.
+This command is only available if Django's :doc:`authentication system
+</topics/auth>` (``django.contrib.auth``) is installed.
dbshell
-------
@@ -210,6 +208,12 @@ records to dump. If you're using a :ref:`custom manager <custom-managers>` as
the default manager and it filters some of the available records, not all of the
objects will be dumped.
+.. versionadded:: 1.3
+
+The :djadminopt:`--all` option may be provided to specify that
+``dumpdata`` should use Django's base manager, dumping records which
+might otherwise be filtered or modified by a custom manager.
+
.. django-admin-option:: --format <fmt>
By default, ``dumpdata`` will format its output in JSON, but you can use the
@@ -227,6 +231,11 @@ pretty-print the output with a number of indentation spaces.
The :djadminopt:`--exclude` option may be provided to prevent specific
applications from being dumped.
+.. versionadded:: 1.3
+
+The :djadminopt:`--exclude` option may also be provided to prevent specific
+models (specified as in the form of ``appname.ModelName``) from being dumped.
+
.. versionadded:: 1.1
In addition to specifying application names, you can provide a list of
@@ -268,7 +277,6 @@ prompts.
The :djadminopt:`--database` option may be used to specify the database
to flush.
-
inspectdb
---------
@@ -524,8 +532,8 @@ runfcgi [options]
.. django-admin:: runfcgi
Starts a set of FastCGI processes suitable for use with any Web server that
-supports the FastCGI protocol. See the :ref:`FastCGI deployment documentation
-<howto-deployment-fastcgi>` for details. Requires the Python FastCGI module from
+supports the FastCGI protocol. See the :doc:`FastCGI deployment documentation
+</howto/deployment/fastcgi>` for details. Requires the Python FastCGI module from
`flup`_.
.. _flup: http://www.saddi.com/software/flup/
@@ -611,7 +619,7 @@ Serving static files with the development server
By default, the development server doesn't serve any static files for your site
(such as CSS files, images, things under ``MEDIA_URL`` and so forth). If
-you want to configure Django to serve static media, read :ref:`howto-static-files`.
+you want to configure Django to serve static media, read :doc:`/howto/static-files`.
shell
-----
@@ -804,8 +812,6 @@ with an appropriate extension (e.g. ``json`` or ``xml``). See the
documentation for ``loaddata`` for details on the specification of fixture
data files.
---noinput
-~~~~~~~~~
The :djadminopt:`--noinput` option may be provided to suppress all user
prompts.
@@ -819,7 +825,7 @@ test <app or test identifier>
.. django-admin:: test
-Runs tests for all installed models. See :ref:`topics-testing` for more
+Runs tests for all installed models. See :doc:`/topics/testing` for more
information.
.. versionadded:: 1.2
@@ -844,7 +850,7 @@ For example, this command::
...would perform the following steps:
- 1. Create a test database, as described in :ref:`topics-testing`.
+ 1. Create a test database, as described in :doc:`/topics/testing`.
2. Populate the test database with fixture data from the given fixtures.
(For more on fixtures, see the documentation for ``loaddata`` above.)
3. Runs the Django development server (as in ``runserver``), pointed at
@@ -852,7 +858,7 @@ For example, this command::
This is useful in a number of ways:
- * When you're writing :ref:`unit tests <topics-testing>` of how your views
+ * When you're writing :doc:`unit tests </topics/testing>` of how your views
act with certain fixture data, you can use ``testserver`` to interact with
the views in a Web browser, manually.
@@ -889,6 +895,11 @@ To run on 1.2.3.4:7000 with a ``test`` fixture::
django-admin.py testserver --addrport 1.2.3.4:7000 test
+.. versionadded:: 1.3
+
+The :djadminopt:`--noinput` option may be provided to suppress all user
+prompts.
+
validate
--------
@@ -954,6 +965,7 @@ that ``django-admin.py`` should print to the console.
* ``0`` means no output.
* ``1`` means normal output (default).
* ``2`` means verbose output.
+ * ``3`` means *very* verbose output.
Common options
==============
@@ -1107,4 +1119,4 @@ distribution. It enables tab-completion of ``django-admin.py`` and
with ``sql``.
-See :ref:`howto-custom-management-commands` for how to add customized actions.
+See :doc:`/howto/custom-management-commands` for how to add customized actions.