Python Blog Tutorial #4 - Adding And Deleting Comments

preview_player
Показать описание
Welcome back to another blog tutorial video! In this video, we'll go over how people can add comments to someone's post. We'll also go over how to allow the owner of the comment to delete it.

📄 Resources 📄

⭐️ Timestamps ⭐️
00:00 | Overview
00:25 | Fixing Some Mistakes
01:37 | Comment Database Model
04:04 | Create Comment HTML
08:40 | Create Comment View
12:50 | Displaying Comments
26:50 | Delete Comment HTML
28:59 | Delete Comment View

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
💰 Courses & Merch 💰

🔗 Social Medias 🔗

🎬 My YouTube Gear 🎬

💸 Donations 💸
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

⭐️ Tags ⭐️
- Tech With Tim
- Python Tutorial
- Flask
- Blog Web App
- HTML
- Python Project

⭐️ Hashtags ⭐️
#TechWithTim #PythonTutorial
Рекомендации по теме
Комментарии
Автор

For anyone having issues with the "View comments" button not working, try changing the "data-bs-toggle="collapse" to "data-toggle="collapse" in posts_div.html. I spent hours trying to debug and that was the solution for me.

connordiddycodes
Автор

This is one of your most coolest python series. Truly amazing, Thank You

Atharva_Vashist
Автор

Please make a video on Pythonic best practices and conventions – and how to start and maintain large python projects! That would be awesome!


And as always, great video!

jonlothar
Автор

You are so fast at work that we need more ad breaks to catch our breath :)

ZielonyKubek
Автор

Quite useful series! Flask-Migration could also be used for convenient change in database.

arinnnnnn
Автор

Thanks for this tutorial, Tim. I am a big fan of yours.😁

wtfisthis
Автор

at 13:31 for the for loop to work you need to pass comment as a variable to all the pages that you want to have the post-div
comments = Comment.query.all()

then pass this comments=comments into the render_template
for example: return render_template('home.html', user=current_user, posts=posts, comments=comments)

fusn
Автор

Can you also please make a tutorial on how to deploy this flask app on netlify or heroku

jillpatel
Автор

when i press "view i.e. 3 comments" the comments collapse on the screen but when i press again it won't "uncollapse".

JimZarasOfficial
Автор

After clicking view comments I think it should be hide comments.

Atharva_Vashist
Автор

@Tech With Tim . if a user is deleting a comment the how to show there that comment is deleted by a user. Please help me

ananyakhera
Автор

Do I need to know flask before starting this series'??

pythonenthusiast
Автор

Excelente Vídeo bro, bro en este caso si le quiero agregar una barra de buscar Post, cómo puedo hacer esa parte?? Gracias

djmuxic
Автор

Hey Tim when is #5 of this tutorial will be released?

janaprasanna
Автор

Did anyone face a bug while deleting posts?

yuvii
Автор

Could you please make a tutorial series on RUST

GurjantSingh-ifty
Автор

Which backend is good django or node js🙄...

alagappank
Автор

Hi Tim what jinja highlighter are you using?

aarjavjain
Автор

{% for comment in post.comments %}


{{comment.text}}

{% endfor %}

for me, comments are not working it's not showing (displaying)comments I don't know why pls someone helps me @tim

srikanthganesh
Автор

The hollow desert biophysically milk because pigeon consistently offend in a disagreeable market. abiding, penitent observation

fnadir