mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #25356 -- Removed default_app_config from startapp template.
Also discouraged its use outside the intended use case.
This commit is contained in:
parent
29d52583e7
commit
862de0b254
6 changed files with 8 additions and 12 deletions
|
@ -199,14 +199,14 @@ But first we need to tell our project that the ``polls`` app is installed.
|
|||
Django installation.
|
||||
|
||||
Edit the :file:`mysite/settings.py` file again, and change the
|
||||
:setting:`INSTALLED_APPS` setting to include the string ``'polls'``. So it'll
|
||||
look like this:
|
||||
:setting:`INSTALLED_APPS` setting to include the string
|
||||
``'polls.apps.PollsConfig'``. It'll look like this:
|
||||
|
||||
.. snippet::
|
||||
:filename: mysite/settings.py
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'polls',
|
||||
'polls.apps.PollsConfig',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue