How to Create Custom Management Command in Django | Handling Arguments | Full Tutorial with Examples

preview_player
Показать описание
In this video, I'm gonna be showing you how to create Custom Management Commands in Django. We will be doing everything step by step starting with the introduction all the way up to writing your own clean custom management commands. Things we are going to discuss:
1) What are Django Management Commands and why we should create a custom Management Command?
2) Writing a simple Custom Management Command in Django.
3) Handling Arguments:
1) Positional Arguments
2) Named / Optional Arguments
3) Boolean Arguments
4) Arbitrary List of Arguments
4) Styling the output commands.
5) Handling Private files.

Timestamps:
0:00 Introduction.
0:34 Management Commands and its Use Cases.
3:34 A Basic Example.
8:51 Handling Arguments - Positional Arguments.
14:03 Handling Arguments - Named / Optional Arguments.
18:18 Handling Arguments - Boolean Arguments.
21:32 Handling Arguments - Arbitrary List of Arguments.
26:19 Conclusion.

Subscribe | Code Band

References :

Other videos in Code Band:

:) You Can Find Me On:
Рекомендации по теме
Комментарии
Автор

The best explaination for the management commands! Thanks!

Sylpheron
Автор

Really informative, helpful.. Thank you

bibinbaby
Автор

long time no see...waiting for your DRF and Django eCommerce series :)..

codedjango