Python Django Tutorial #10: Django Delete Form, Django Delete View | Django blog project

Опубликовано: 14 Сентябрь 2024
на канале: Red Eyed Coder Club
1k
31

This Python Django Tutorial video is about using Django Delete Form, and Django Delete View do delete post from database.
In this Django Tutorial video a user want to delete a post from our Django blog. He chooses the post, clicks the delete button, and Django redirects him on the Delete Post page. There the User confirms that he want to delete the post from database, and Django deletes the post from the database. After that the Django will redirect the user to the main page.

The Django delete post tutorial uses the same logic. We'll create a Django delete view (it's a cbv) that will delete post from the database, then we'll need a Django Delete Form to ask a user. And that's it.
The Django Delete Form will have bootstrap styles, also we will use a Django Delete mixin.

Shortly: this Django tutorial is about how to delete a record from a database - deleting Post and Tag objects with Django Forms.


Follow me
Telegram:
Twitter:
Facebook:


============ SOURCE CODE ================
️ The SOURCE CODE is available via Patreon:

======================================


Please Like Comment Subscribe

️️️ Web Scraping course ️️️
is available via Patreon here:


or its landing:



▶️ This Django blog tutorial. List of videos:

Demo


Django Project Structure


Routing and Handling requests


Template Inheritance


Models. Blog Posts


Tag Model and ManyToMany Relationships


Class Based Views and using Mixins


Django Forms. Creating Tags.


Forms. Creating Posts


Updating via Forms


Using of Django Delete Form, Django Delete View to delete a post from database


Using custom CSS


Restricting access


Django Pagination


Django Basic Search




️️️ PLAYLISTS ️️️

Django 3 Tutorial: Blog Engine


Kivy Tutorial: Coppa Project


Telegram Bot with Python (CoinMarketCap)


Python Web Scraping



SUBSCRIBE FOR MORE VIDEOS
Red Eyed Coder Club is the best place to learn Python programming and Django:
Subscribe ⇢

Python Django Tutorial Django Delete Form, Django Delete View | Django Crash Course