Learn Django - Build a custom command

preview_player
Показать описание
In this Django tutorial we work towards building custom commands, configuring the directory structure and create three custom commands using placement arguments and flag arguments.

00:00 Introduction
00:30 Folder structure - command placement
02:09 Create a new file and build first custom command
04:46 Second example - create users
07:38 Using flag arguments to build admin accounts
09:51 Third example - delete users from database

I assume you know how to build a Django project so we get straight into first building the folder structure and then take a look at building our first custom command using a placement argument.

We then build two more custom commands to random users and insert into the database and finally a command to delete users where we can pass in multiple arguments. All commands are explained and demonstrated.

Code Repository

SUBSCRIBE to get more free tutorials, courses and code snippets!

Follow us on Facebook

Follow use on Twitter:
Рекомендации по теме
Комментарии
Автор

After watching this video, now when I refer the documentation it all makes sense.
Thanks!

sanketnawale
Автор

Thanks for the video !! Zander you are amazing !

prateeksarangi
Автор

you made this so much easier then the thank you so much! 4 minutes into the clip and now everything is understandable!

nopenope
Автор

You are literally helping me everyday!

ishaansharma
Автор

Not sure how I missed this one....but certainly a very nice tutorial :)

codedjango