41 - Implement Django Messages with Bootstrap Alerts - Django | DRF | React w. Data Analysis

Опубликовано: 15 Январь 2026
на канале: Sugarloaf And a Cup of Joe
680
12

Useful links:
https://docs.djangoproject.com/en/3.1...
https://getbootstrap.com/docs/4.0/com...

About this video:
Good messaging system is the key to a good UX. User should always know what's going on and be informed when errors occur. Django provides us with a very simple to use messaging system. Combined with bootstrap alerts we can very fast create a reliable messaging feature.

Video Content:
00:00 Intro
00:34 Import: from django.contrib import messages
00:59 What messages can we use?
01:25 Log a message in view
02:03 Create html for messages using Bootstrap alerts
04:15 Add messages to base.html
05:07 Test messages
06:04 Fix messages html to work with alerts correctly
07:37 Clean up
07:45 Using messages with redirect


About this tutorial:
The primary goal of this tutorial is to take you through the steps of creating a solid Django portfolio project that will stand out when you talk to your future employer.
Check out tutorial's intro to see if it's something for you:
   • 01 - Introduction to the course - Django -...  

Tutorial repo:
https://github.com/SugarloafAndACupOf...

Please hit SUBSCRIBE if you wanna get the notifications about the new content!
Also, like the hell out of this video if you find it useful/interesting!
Follow us on Facebook:   / sugarloaf-and-a-cup-of-joe-101638761829670  
and Instagram:   / sugarloaf_and_a_cup_of_joe