mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #23067 -- Updated docs to use django-admin
This commit is contained in:
committed by
Tim Graham
parent
66630f589c
commit
d47409831f
@@ -37,7 +37,7 @@ Installing the contenttypes framework
|
||||
=====================================
|
||||
|
||||
The contenttypes framework is included in the default
|
||||
:setting:`INSTALLED_APPS` list created by ``django-admin.py startproject``,
|
||||
:setting:`INSTALLED_APPS` list created by ``django-admin startproject``,
|
||||
but if you've removed it or if you manually set up your
|
||||
:setting:`INSTALLED_APPS` list, you can enable it by adding
|
||||
``'django.contrib.contenttypes'`` to your :setting:`INSTALLED_APPS` setting.
|
||||
|
||||
@@ -7,7 +7,7 @@ GeoDjango Management Commands
|
||||
inspectdb
|
||||
=========
|
||||
|
||||
.. describe:: django-admin.py inspectdb
|
||||
.. describe:: django-admin inspectdb
|
||||
|
||||
When :mod:`django.contrib.gis` is in your :setting:`INSTALLED_APPS`, the
|
||||
:djadmin:`inspectdb` management command is overridden with one from GeoDjango.
|
||||
|
||||
@@ -81,12 +81,12 @@ to create a :ref:`SpatiaLite database <create_spatialite_db>`.
|
||||
Create a New Project
|
||||
------------------------
|
||||
|
||||
Use the standard ``django-admin.py`` script to create a project called
|
||||
Use the standard ``django-admin`` script to create a project called
|
||||
``geodjango``:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ django-admin.py startproject geodjango
|
||||
$ django-admin startproject geodjango
|
||||
|
||||
This will initialize a new project. Now, create a ``world`` Django application
|
||||
within the ``geodjango`` project:
|
||||
|
||||
@@ -22,7 +22,7 @@ Enabling messages
|
||||
Messages are implemented through a :doc:`middleware </ref/middleware>`
|
||||
class and corresponding :doc:`context processor </ref/templates/api>`.
|
||||
|
||||
The default ``settings.py`` created by ``django-admin.py startproject``
|
||||
The default ``settings.py`` created by ``django-admin startproject``
|
||||
already contains all the settings required to enable message functionality:
|
||||
|
||||
* ``'django.contrib.messages'`` is in :setting:`INSTALLED_APPS`.
|
||||
|
||||
@@ -198,7 +198,7 @@ in your project's :setting:`INSTALLED_APPS` setting.
|
||||
|
||||
Example usage::
|
||||
|
||||
django-admin.py runserver --nostatic
|
||||
django-admin runserver --nostatic
|
||||
|
||||
.. django-admin-option:: --insecure
|
||||
|
||||
@@ -214,7 +214,7 @@ in your project's :setting:`INSTALLED_APPS` setting. :djadmin:`runserver`
|
||||
|
||||
Example usage::
|
||||
|
||||
django-admin.py runserver --insecure
|
||||
django-admin runserver --insecure
|
||||
|
||||
.. _staticfiles-storages:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user