Python Django : How to Combine makemigrations, migrate and runserver management commands

preview_player
Показать описание
In this video we'll see how easy it is to create custom commands in Django.

Important: combining management commands with 'runserver' could lead to unexpected results and should never be used in a production environment.

00:00 - About Custom Commands
00:39 - How to Create Custom Commands
01:56 - Import Base Command Class
02:15 - Override Handle Method to call "makemigrations", "migrate" and "runserver"

#django
#tutorial
#python
#webdevelopment
#codingtutorial
Рекомендации по теме
Комментарии
Автор

Hello, 👋 I hope you find this video useful.

I decided to record it last night while working on a project that required me to run migrations very often. I'd love to hear about the custom commands you've implemented in your workflow as well. 😊

PikoCanFly
Автор

This helped me a lot and not until I learnt how to import and export data. Very helpful, love from Uganda

allanbakwanamaha
Автор

Thanks for your teaching, for your sweet voice, I love hear you...

MarcoBustos-oebv
Автор

Wow! I had no idea that this was an option! Thank you for this! Very useful!

friendlyalien-joys
Автор

Would be great if you could release intermediate and advanced videos on Django Rest Framework and ReactJS. By the way, I liked your channel.

coffandprograming