diff options
| author | Ankur Gupta <ankur0493@gmail.com> | 2016-09-06 11:49:51 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-09-07 14:16:33 -0400 |
| commit | 9a03d30d94a6924ffdcdcc58dce267485ca393a2 (patch) | |
| tree | 88256095a750d4e3fc49e5f0c1a7600bcf0feb47 | |
| parent | baa1790b4ddd5e7836170743aa058c834b7b2040 (diff) | |
[1.10.x] Fixed #27174 -- Explained where PollsConfig comes from in tutorial 2.
Backport of 40d501147176352b694ec8b67b09127b20193ad2 from master
| -rw-r--r-- | docs/intro/tutorial02.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt index 88bf83d15c..b877aa49a0 100644 --- a/docs/intro/tutorial02.txt +++ b/docs/intro/tutorial02.txt @@ -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 Django installation. -Edit the :file:`mysite/settings.py` file again, and change the -:setting:`INSTALLED_APPS` setting to include the string -``'polls.apps.PollsConfig'``. It'll look like this: +To include the app in our project, we need to add a reference to its +configuration class in the :setting:`INSTALLED_APPS` setting. The +``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:: :filename: mysite/settings.py |
