Задать вопрос

Тел: +7 965 3737 888





Management command to list custom management commands

I work with multiple projects, many of which have multiple custom management commands defined. It can be hard to remember them, and slow to pick them out of the "manage.py help" list.

This quickie command lists all of a project's custom commands (along with their help text). Writing it was easy after looking at the source of django.core.management.

Open questions include: how do you decide which app to put this command in? Should this command list itself?

Вопрос полезен? Да0/Нет0

Ответы (2):

Ответ полезен? Да0/Нет0

Very cool, I second andybak's suggestion. If you fork django-extensions on Github and send us a pull request I can add it right away. Oh, there is one thing, the find_management_module call in line 14 will raise an ImportError on 1.1.

Ответ полезен? Да0/Нет0

You should suggest including this with Django Extensions. That seems like an ideal home for it.