#25381: "default_app_config" causes custom commands to not be found
-------------------------------------+-------------------------------------
Reporter: thebritican | Owner: nobody
Type: Bug | Status: closed
Component: Core (Management | Version: 1.8
commands) |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by thebritican):
Replying to [comment:4 timgraham]:
> Okay, but that doesn't look like a bug in Django. Please see
TicketClosingReasons/UseSupportChannels for ways to get help.
>
> I will however propose a documentation patch which might help you
understand why things aren't working as you expect.
> {{{#!diff
> diff --git a/docs/ref/applications.txt b/docs/ref/applications.txt
> index eb3cc6f..d634e73 100644
> --- a/docs/ref/applications.txt
> +++ b/docs/ref/applications.txt
> @@ -204,13 +204,14 @@ Methods
>
> .. method:: AppConfig.get_models()
>
> - Returns an iterable of :class:`~django.db.models.Model` classes.
> + Returns an iterable of :class:`~django.db.models.Model` classes for
this
> + application.
>
> .. method:: AppConfig.get_model(model_name)
>
> Returns the :class:`~django.db.models.Model` with the given
> - ``model_name``. Raises :exc:`LookupError` if no such model exists.
> - ``model_name`` is case-insensitive.
> + ``model_name``. Raises :exc:`LookupError` if no such model exists
in this
> + application. ``model_name`` is case-insensitive.
>
> .. method:: AppConfig.ready()
>
> }}}
Thank you, I ended up moving the AppConfig over to the other package and
listed it in INSTALLED_APPS, resolving my issue. The documentation change
does help clarify the issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/25381#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.bbd5f93da14fa64c10d72e7260aee0be%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.