A

Admin • 833.24K Points
Coach

Q. How do you define a custom command in Django?

  • (A) Add to models.py
  • (B) Create a script in root folder
  • (C) Inside app/management/commands
  • (D) Inside app/scripts
  • Correct Answer - Option(C)
  • Views: 41
  • Filed under category Django
  • Hashtags:

Explanation by: Admin

Custom commands are defined in the `management/commands` directory of an app.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.