mirror of
https://github.com/django/django.git
synced 2025-06-04 02:59:13 +00:00
Fixed #27174 -- Explained where PollsConfig comes from in tutorial 2.
This commit is contained in:
parent
2eb7d6e6d4
commit
40d5011471
@ -204,9 +204,12 @@ But first we need to tell our project that the ``polls`` app is installed.
|
|||||||
you can distribute apps, because they don't have to be tied to a given
|
you can distribute apps, because they don't have to be tied to a given
|
||||||
Django installation.
|
Django installation.
|
||||||
|
|
||||||
Edit the :file:`mysite/settings.py` file again, and change the
|
To include the app in our project, we need to add a reference to its
|
||||||
:setting:`INSTALLED_APPS` setting to include the string
|
configuration class in the :setting:`INSTALLED_APPS` setting. The
|
||||||
``'polls.apps.PollsConfig'``. It'll look like this:
|
``PollsConfig`` class is in the :file:`polls/apps.py` file, so its dotted path
|
||||||
|
is ``'polls.apps.PollsConfig'``. Edit the :file:`mysite/settings.py` file and
|
||||||
|
add that dotted path to the :setting:`INSTALLED_APPS` setting. It'll look like
|
||||||
|
this:
|
||||||
|
|
||||||
.. snippet::
|
.. snippet::
|
||||||
:filename: mysite/settings.py
|
:filename: mysite/settings.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user