- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Making queries to create , save , and update with save(), create(), set(), add() p9 | Django in deep
Once you’ve created your data models, Django automatically gives you a database-abstraction API that
lets you create, retrieve, update and delete objects. This tutorial explains how to use this API.
#creating objects
To represent #database-table data in #python objects, #django uses an intuitive system
A model class represents
a #database table, and an instance of that class represents a particular record in the database table.
To create an object, instantiate it using keyword arguments to the model class, then call save() to save it to
the database or use the #create () method to create and save the object in one single line of code .
Saving changes to objects
To save changes to an object that’s already in the database, use #save () .
subscribe for more videos :https://www.youtube.com/eliecode
buy me coffee : https://www.buymeacoffee.com/byiringiroA
TABLE OF CONTENT
00:00 intro
01:45 how to save and create object with queries
11:06 how to update changes to objects using save()
13:06 how to use use save() method to update a #foreignkey field
16:54- How to use add() method to update a #manytomany field
19:39 How to use add() method to update a many to many field
20:22 conclusion
#django #python #djangorestframework
Django is often described as a robust framework because it offers a comprehensive set of features and tools that allow developers to build complex and scalable web applications with ease. It provides a solid foundation for handling various aspects of web development, including URL routing, database management, user authentication, security, and more. Its robustness stems from its well-designed architecture, extensive documentation, and a vibrant community that continuously supports and enhances the framework.
Видео Making queries to create , save , and update with save(), create(), set(), add() p9 | Django in deep канала ELIE
lets you create, retrieve, update and delete objects. This tutorial explains how to use this API.
#creating objects
To represent #database-table data in #python objects, #django uses an intuitive system
A model class represents
a #database table, and an instance of that class represents a particular record in the database table.
To create an object, instantiate it using keyword arguments to the model class, then call save() to save it to
the database or use the #create () method to create and save the object in one single line of code .
Saving changes to objects
To save changes to an object that’s already in the database, use #save () .
subscribe for more videos :https://www.youtube.com/eliecode
buy me coffee : https://www.buymeacoffee.com/byiringiroA
TABLE OF CONTENT
00:00 intro
01:45 how to save and create object with queries
11:06 how to update changes to objects using save()
13:06 how to use use save() method to update a #foreignkey field
16:54- How to use add() method to update a #manytomany field
19:39 How to use add() method to update a many to many field
20:22 conclusion
#django #python #djangorestframework
Django is often described as a robust framework because it offers a comprehensive set of features and tools that allow developers to build complex and scalable web applications with ease. It provides a solid foundation for handling various aspects of web development, including URL routing, database management, user authentication, security, and more. Its robustness stems from its well-designed architecture, extensive documentation, and a vibrant community that continuously supports and enhances the framework.
Видео Making queries to create , save , and update with save(), create(), set(), add() p9 | Django in deep канала ELIE
Комментарии отсутствуют
Информация о видео
1 июня 2023 г. 18:45:13
00:22:05
Другие видео канала




















