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
https://github.com/veryacademy/YT-Dja...
SUBSCRIBE to get more free tutorials, courses and code snippets!
/ @veryacademy
Follow us on Facebook
/ veryacademycom-113232103670580
Follow use on Twitter:
/ veryacademy