Why? I don't see an impetus to avoid creating a Django app. In most use
cases there are related models or other Django bits to go with a management
command.

On Sat, 19 Dec 2020 at 01:48, Diptesh Choudhuri <diptesh.choudh...@gmail.com>
wrote:

> As of now, if you need to create a management command, it is necessary to
> create a file *app_name/management/commands/my_command.py, *and then add 
> *app_name
> *to *INSTALLED_APPS *in *settings.py. *This prevents non-django packages
> from defining their own management commands, because it explicitly requires
> them to create a django app which just adds a bunch of unnecessary files to
> their source code.
>
> I propose we overhaul the existing management command discovery system so
> that it is easier to write management commands. Also I suggest we keep the
> default discoverer in place so as to maintain backwards compatibility.
>
> All of this will require documentation and I am ready to make a PR for
> that too. Please tell me if the idea is feasible, and I will get to work on
> it ASAP.
>
> Best
> Diptesh Choudhuri
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/a7f9bf60-da49-404b-ac70-192220149059n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/a7f9bf60-da49-404b-ac70-192220149059n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM3ZOAYtKUc1OfkW%2Bak%2BdJyHP68LRPh1sRJkJe%2BH5wN6-w%40mail.gmail.com.

Reply via email to