mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Documented django.setup().
Thanks Eric Holscher and Tim Graham for the review.
This commit is contained in:
parent
2bcb8bfc8d
commit
58ed387db3
2 changed files with 66 additions and 5 deletions
|
@ -14,11 +14,11 @@ two things for you before delegating to ``django-admin.py``:
|
|||
* It sets the :envvar:`DJANGO_SETTINGS_MODULE` environment variable so that
|
||||
it points to your project's ``settings.py`` file.
|
||||
|
||||
* It calls ``django.setup()`` to initialize various internals of Django.
|
||||
* It calls :func:`django.setup()` to initialize various internals of Django.
|
||||
|
||||
.. versionadded:: 1.7
|
||||
|
||||
``django.setup()`` didn't exist in previous versions of Django.
|
||||
:func:`django.setup()` didn't exist in previous versions of Django.
|
||||
|
||||
The ``django-admin.py`` 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue