Django: Getting Started Transcripts
Chapter: Course conclusion
Lecture: Management commands
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
Out of the box, Django provides a series of management commands that help you create your project, manage your files,
0:07
manage your database, and much more. As with a lot of things in Django, this same power is available to you as a coder.
0:14
You can write your own management commands by creating a management commands directory
0:19
in your app and writing a script that contains a class that inherits from base command.
0:24
The handle method in this class is what is called when your command is invoked from
0:27
the terminal, and the command uses arg parse to manage switches and options sent to sent to you.