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

Описание к видео How to Create Custom Management Command in Django | Handling Arguments | Full Tutorial with Examples

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 :
Github : https://github.com/akjasim/cb_django_...
Django Docs : https://docs.djangoproject.com/en/3.1...
argparse Python : https://docs.python.org/3/library/arg...

Other videos in Code Band:
Django Dependent Drop Down List Example | Integration with Django Forms and Django Form Validations :    • Django Dependent Drop Down List Examp...  
Django Autocomplete with jQuery UI | AJAX | Search | Filter from Database | Tutorial | Code Band :    • Django Autocomplete with jQuery UI | ...  
Build a Weather App in Django | Scrape Weather Data from Google | Beautiful Soup | Python Requests :    • Build a Weather App in Django | Scrap...  
Sending Emails in Django using Gmail | Secure, Easy and the Django Way :    • Sending Emails in Django using Gmail ...  
Python .env File | Django .env File Example | Python Decouple Django | Django Environment Variables :    • Python .env File |  Django .env File ...  
Django Select2 Tutorial | Django Dropdown | Django ajax Dropdown | Django Search and Filter :    • Django Select2 Tutorial | Django Drop...  
Django Shell Plus | Advanced Django Shell | Django Shell Commands | Django Shell Tutorial :    • Django Shell Plus | Advanced Django S...  
Django Seed Data into Database Models | Django Faker | Django loaddata | Django Dummy Data :    • Django Seed Data into Database Models...  
3 Cool Django Features that Django Developers are Not Aware of :    • 3 Cool Django Features that Django De...  
Build a Weather App in Django | Scrape Weather Data from Google | Beautiful Soup | Python Requests :    • Build a Weather App in Django | Scrap...  
Django Custom User Model | Email as Username | Phone as Username | Authentication Example |Code Band :    • Django Custom User Model | Email as U...  
Playlist | Django Authentication | The easiest and actual way of doing it :    • Django Authentication Tutorial  
Playlist | Django Relationships | Explained with Example by Code Band :    • Django Relationships | Explained with...  
Custom Model Manager & Model QuerySet in Django :    • Custom Model Manager & Model QuerySet...  
Render Django Form Manually : Make Custom Form with Form Validations -    • Render Django Form Manually - Make Cu...  
Generic Class Based Views in Django | Introduction & Create View in Django | Learn by Example | CRUD :    • Generic Class Based Views in Django |...  
How to Deploy Django Project on Heroku for Free :    • How to Deploy Django Project on Herok...  
Connect Django with MySQL :    • How to Connect Django With MySQL Data...  
Instagram Automation using Python :    • Instagram Automation using Python | W...  
Top 5 Programming Languages to Learn in 2020 :    • Top 5 Programming Languages to Learn ...  

:) You Can Find Me On:
My Website - https://jasim.tech/
Linkedin -   / akjasim  
Github - https://github.com/akjasim/
Facebook -   / jasimakjasim  
Twitter -   / akjasim  
Instagram -   / jasim_ak  

Комментарии

Информация по комментариям в разработке