Python Blog Tutorial #5 - Liking Posts

preview_player
Показать описание
Welcome back to the blog tutorial series! In this video, we'll be wrapping up the series by showing how to like and unlike posts. We'll also go over calling back to the flask server using javascript so we don't need to refresh the page when comments are added or posts are liked.

📄 Resources 📄

⭐️ Timestamps ⭐️
00:00 | Overview
00:35 | Like Database Model
02:43 | Adding Font Awesome Icons
07:40 | Like Counter
09:15 | Like Post View
13:35 | Like Button
21:14 | Avoiding Page Refresh Using Javascript

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

🔗 Social Medias 🔗

🎬 My YouTube Gear 🎬

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

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

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

Thank you for this tutorial, Tim! I definitely learned a lot in this series. I'll also try to improve the website's looks or add more functionalities just to test my knowledge.

kenet
Автор

Love it tim. I learned a lot. I hope in the future you make something like this but a way to make it more modular and to read from api's like adding excell to the site or having tabs etc. Oh and for any newbies like myself having the database not working. Delete the Delete at the bottom of the inni file and replace likes 24 and 25 with this: with app.app_context():
db.create_all() that should create the database. Apparently they removed the ability to pass the (app) in new versions.

buredabby
Автор

Thank you, Learned in-depth about flask specially with databases and jinja syntax

mrcodercodes
Автор

Thank you so much Tim! I’ve tried to figure out how to make the like button for ages and you gave me the answer!

LemonadetvYT
Автор

Thanks tim, for making this huge tutorial series!
Could you please make a django version of this please?

elpython
Автор

Thank you Tim for organizing this kind of project it really help me i just add some more features and use it as my final year project

Kennethlumor
Автор

You are an excellent teacher, Tim. Keep up the good work.

jprattart
Автор

Great job, thanks for this amazing tutorial. I think I will make my own site after this tutorial, because you have covered almost everything related to flask.

canonnist
Автор

thanks for this tutorial, i learned a lot, please bring more tutorials from this one with the flask your methodology is amazing.

simeoneholanda
Автор

Lots of thnx to Tech With Tim.... Expected this for a long time...

mastersrikavipriyan
Автор

This Same blog but in Django - Please make that too Tim - Will be waiting for it eagerly

muhammadanas
Автор

Thanks so much, Tim. You're a really great teacher and person. Thanks for sharing us your knowledge

darwinquinones
Автор

Thank you for an awesome tutorial Tim! :D

faarisrazi
Автор

I have learned a lot of things since subscribed this channel.

onlyforscience
Автор

Thanks Tim.
I always enjoy watching and following your tutorial to learn python.

I followed your steps and I realized that if I made a post(post id =1), comment and like it, and then delete the post,
the like and comment do not be deleted and left in the database.
So if I made a new post in which post id=1 again, the like and comment will be related to the new post.

Is that a bug or I missed out something in the tutorial =(

oowmas
Автор

Thank you so much for this tutorial, I was able to learn so much from this, im curious to use pyscript instead of javascript to see how things go, I will definitely try it on your code

ChasingDream
Автор

Please Tim at the end. Teach us where to keep the admin credentials. Like the passwords required to access the admin section. I have looked up for many video s but ended up more confused.

aadarshbaral
Автор

Its a great tutorial. my onclick function in the edit hard a problem but after following through the like button function with the highlighted error on the edit. Thanks a lot Tim.

kevinmwangi
Автор

Simply awesome! Thank you so much!

Did you ever deploy it to azure? I somehow struggle with the startup and have no clue how to solve the issue.

shwbqkk
Автор

Thank you Tim! How can I change my database model, so that I can host this website?

DSCuber---
welcome to shbcf.ru