Opened 10 years ago

Closed 10 years ago

#22974 closed Uncategorized (duplicate)

howto-custom-management-commands: manage.py is completely changed

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.6
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I don't know how to add a custom command based on all docs from 1.6 to present. manage.py looks completely different and does not display the command created under <app>/management/commands

https://docs.djangoproject.com/en/1.6/howto/custom-management-commands/#howto-custom-management-commands

Change History (2)

in reply to:  description comment:1 by anonymous, 10 years ago

Replying to anonymous:

I don't know how to add a custom command based on all docs from 1.6 to present. manage.py looks completely different and does not display the command created under <app>/management/commands

https://docs.djangoproject.com/en/1.6/howto/custom-management-commands/#howto-custom-management-commands

I found the solution: there must be init.py files (empty) in both management and commands directories. The documents could state this better. Thanks

comment:2 by Tim Graham, 10 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #22942.

Note: See TracTickets for help on using tickets.
Back to Top