mirror of
https://github.com/django/django.git
synced 2025-01-05 16:06:07 +00:00
Corrected doc'd differences between django-admin and manage.py.
This commit is contained in:
parent
6d03bc14e7
commit
8091e8c5c6
@ -6,16 +6,14 @@ django-admin and manage.py
|
|||||||
This document outlines all it can do.
|
This document outlines all it can do.
|
||||||
|
|
||||||
In addition, ``manage.py`` is automatically created in each Django project.
|
In addition, ``manage.py`` is automatically created in each Django project.
|
||||||
``manage.py`` is a thin wrapper around ``django-admin`` that takes care of
|
``manage.py`` does the same thing as ``django-admin`` but takes care of a few
|
||||||
several things for you before delegating to ``django-admin``:
|
things for you:
|
||||||
|
|
||||||
* It puts your project's package on ``sys.path``.
|
* It puts your project's package on ``sys.path``.
|
||||||
|
|
||||||
* It sets the :envvar:`DJANGO_SETTINGS_MODULE` environment variable so that
|
* It sets the :envvar:`DJANGO_SETTINGS_MODULE` environment variable so that
|
||||||
it points to your project's ``settings.py`` file.
|
it points to your project's ``settings.py`` file.
|
||||||
|
|
||||||
* It calls :func:`django.setup()` to initialize various internals of Django.
|
|
||||||
|
|
||||||
The ``django-admin`` script should be on your system path if you installed
|
The ``django-admin`` script should be on your system path if you installed
|
||||||
Django via its ``setup.py`` utility. If it's not on your path, you can find it
|
Django via its ``setup.py`` utility. If it's not on your path, you can find it
|
||||||
in ``site-packages/django/bin`` within your Python installation. Consider
|
in ``site-packages/django/bin`` within your Python installation. Consider
|
||||||
|
Loading…
Reference in New Issue
Block a user