How to create custom management commands in Django | Django custom commands

  Рет қаралды 4,657

Pyplane

Pyplane

Күн бұрын

How to create custom management commands in a Django project, executed with the manage.py file.
Join the facebook group:
/ djangoninjas
Follow pyplane on:
instagram: / pyplaneblog
pinterest: / pyplane
facebook: / pyplane
#django #managementcommands #customcommands

Пікірлер
@Pyplane
@Pyplane 4 жыл бұрын
Hi Guys. In case anyone would need the source code - it's here: github.com/hellopyplane/Custom-commands-in-Django
@mohammedqadir3851
@mohammedqadir3851 4 жыл бұрын
Thank you Sir for Sharing this awesome Custom management command video.
@Pyplane
@Pyplane 4 жыл бұрын
Thanks for watching Mohammed. Happy you liked it!
@MrValVet
@MrValVet Жыл бұрын
Liked, commented and subscribed. As darth_vader managerially commanded.
@Pyplane
@Pyplane Жыл бұрын
Appreciate it 🙌😎
@24junar
@24junar 4 жыл бұрын
Hi, I really love your tutorials, just wanna say thank you. Could you please make a video about CheckboxSelectMultiple. Thanks in advanced!
@rangabharath4253
@rangabharath4253 4 жыл бұрын
awesome
@NotBeHaris
@NotBeHaris 4 жыл бұрын
nice tutorial
@Pyplane
@Pyplane 4 жыл бұрын
thank you !!! :)))
@danielaceros5723
@danielaceros5723 4 жыл бұрын
Useful as always Luke
@Pyplane
@Pyplane 4 жыл бұрын
Thank you Daniel! :))
@yukselbastan4687
@yukselbastan4687 4 жыл бұрын
wow 1.81k subscribers, i think sharing your videos makes a little bit difference i hope. Thanks for sharing new content BUT we are waiting for PART14 and confirm the friend request (accepting request) video don't forget it.
@Pyplane
@Pyplane 4 жыл бұрын
Hi Yuksel. Yeah I'll try to add part 14 tomorrow :)
@leandromarquez9257
@leandromarquez9257 2 жыл бұрын
I had a problem, that the app name didn't appear in list displayed when you ran 'python manage.py help'. I could solve it by putting the appname in the top of INSTALLED_APP list in settings.py
@aashayamballi
@aashayamballi 4 жыл бұрын
Thanks Luke :)
@Pyplane
@Pyplane 4 жыл бұрын
Thanks for watching Aashay! :)
@rushabhgediya290
@rushabhgediya290 4 жыл бұрын
Using this method can I delete automatically 10 days older posts..
@rushabhgediya290
@rushabhgediya290 4 жыл бұрын
Each user have 10 days older Post than it will delete automatically...
@Pyplane
@Pyplane 4 жыл бұрын
you can delete it it once you run python manage.py commandname. If you want to have it done automatically you can check out tasks in the background in django
@rushabhgediya290
@rushabhgediya290 4 жыл бұрын
@@Pyplane sir, using django crontab it is possible... In my model i create post_create_date = models.DateTimeField(default=datetime.now) here is my logic is, A = post_create_date + timedelta(days=10). delete () when user create a post after 10 days it will delete. I was think my logic is right...😅
@Pyplane
@Pyplane 4 жыл бұрын
@@rushabhgediya290 In the video on running tasks in the background we did a similar case scenario. If your logic doesn't work you can checkout my code. Cheers
Django database backup and restore + periodic backups
10:19
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Funny superhero siblings
Рет қаралды 11 МЛН
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
World‘s Strongest Man VS Apple
01:00
Browney
Рет қаралды 50 МЛН
Django barcode generator | How to create barcodes in Django
15:42
How to Create Custom Commands in Django
25:50
Pretty Printed
Рет қаралды 11 М.
Django signals for beginners | How to use signals in Django
54:32
Django Database Transactions / atomic() function
34:15
BugBytes
Рет қаралды 6 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 70 М.
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Funny superhero siblings
Рет қаралды 11 МЛН