Advancing the Blog - 21 - Delete View with Confirmation

preview_player
Показать описание
Advancing the Blog - 21 - Delete View with Confirmation

** Advancing the Blog ** is an extended look at building a modern blog with the Django Framework while leveraging other technologies such as jQuery, Markdown, Bootstrap, APIs, and more.

We will be starting where Try Django 1.9 left off to create a powerful blog ready for the modern era. It is highly recommend to start with Try Django 1.9 before starting this series.

Generally the topics will include:
- Django Project Setup
- Class Based Views (& some Function Based Views)
- Models, Model Forms, Forms, Form Validation
- Integrate Bootstrap front-end framework.
- Django Registration Redux for Authentication/Registration
- And More

We are Coding For Entrepreneurs [TeamCFE] and have built an entire library of content to help you master Django and other web technologies to launch real projects faster. Enroll today for as low as $20/month.

What Technology you'll learn in the Build a Django 1.8 Blog series:
-- Bootstrap (version 3.3): a powerful front-end framework used by thousands of sites around the world. Bootstrap makes it easier to have a responsive web application so it looks awesome on any mobile device and any desktop computer.

All of our tutorials have a simple goal in mind: get you building something real and quickly.
Рекомендации по теме
Комментарии
Автор

Instead of confirming deletion on a different page, we can also use a pop up dialogue. Is there a tutorial for this?

panchao
Автор

Thanks a lot! it rolls smoothly, and in just one line.
I am wwondering if this method is safe for deleting objects.
i think that we need to use a form, to not be vulnerable to CSRF attacks. we are also deleting the model before we've checked whether the request was a GET or a POST.

noumab
Автор

how to delete multiple rows in a table using check boxes with jquery...could u tel me a way to do it...

Karma_yogi
Автор

Hi,
I would like to ask you if you have something discontinued. I mean the comment thread view function is not there before. Suddenly, appears here.

SubhaBera
Автор

from .views import (
ImportError: cannot import name 'comment_delete' . why this error is showing in urls.py in comment app

ankitmartinmohanty
Автор

When you mentioned about the get_absolute_url, I think that the method (get_absolute_url) it called is not from the posts model, but from the comments model, right? or I am just confused? :)

PS: Your tutorials are the best!

rejeenaldflores
Автор

Please help fix this:
File "/home/raghav/Desktop/djadngo/src/comments/urls.py", line 4, in <module>
from .views import comment_thread, comment_delete
importError: cannot import name 'comment_delete'

Raghav
Автор

I want you to help me with :
I want a popup for this same delete confirmation and not a new html page

akshat
Автор

I can't delete the reply comment. Can someone help me?

feridbedelov