Django 5.1 - New Features! LoginRequiredMiddleware | {% querystring %} template tag

  Рет қаралды 6,460

BugBytes

BugBytes

Күн бұрын

Пікірлер: 45
@bugbytes3923
@bugbytes3923 22 күн бұрын
☕ Buy a coffee: ko-fi.com/bugbytes ⭐Top resource to learn Python - datacamp.pxf.io/kOjKkV ⭐
@awesomejr.530
@awesomejr.530 4 ай бұрын
Thanks alot @BugBytes for this video. I have been waiting for this since the release of Django 5. Amazing features. The Django community keeps making me fall more in love with Django with each new released features. And they make things so simple and straightforward. Thanks to the Django community out there, I really appreciate your efforts and hardwork. 😊
@faizanarif2610
@faizanarif2610 4 ай бұрын
yes Plz we want All changes in Django5 to be covered, the "before" and "after" method u doing is really great.
@bugbytes3923
@bugbytes3923 4 ай бұрын
Thank you, glad you like that approach!
@TheMrmaster0101
@TheMrmaster0101 3 ай бұрын
I really like this kind of tutorials I didnt see a lot of content that reads the official django documentaion and explains each section so brief but informative (maybe I didn't look enough ) thank you please create more content like this
@bugbytes3923
@bugbytes3923 3 ай бұрын
Thanks a lot! I'll try and create more videos in this style.
@mrmuranga
@mrmuranga 3 ай бұрын
awesome as always
@bugbytes3923
@bugbytes3923 3 ай бұрын
@@mrmuranga thank you!
@aashayamballi
@aashayamballi 4 ай бұрын
thank you for covering this!
@bugbytes3923
@bugbytes3923 4 ай бұрын
Thanks for watching!
@jonl316
@jonl316 2 ай бұрын
Thanks!!
@bugbytes3923
@bugbytes3923 2 ай бұрын
Thanks for watching!
@Deus-lo-Vuilt
@Deus-lo-Vuilt 3 ай бұрын
Thank you, I wish you could upload more material of Django, I leave like and sub
@bugbytes3923
@bugbytes3923 3 ай бұрын
Thanks a lot!
@nicenaija9952
@nicenaija9952 3 ай бұрын
I love this style of videos, thank you
@bugbytes3923
@bugbytes3923 3 ай бұрын
Thanks a lot!
@dragonoha
@dragonoha 3 ай бұрын
Great explanation, just subscribed :) What about CBV and the decorator `login_not_required`? The docs does not explicitly tell the solution for such case or am I missing something?
@MagnusAnand
@MagnusAnand 4 ай бұрын
Nice
@serychristianrenaud
@serychristianrenaud 4 ай бұрын
Thanks 🎉❤
@bugbytes3923
@bugbytes3923 3 ай бұрын
Thanks for watching!
@johnharper1085
@johnharper1085 13 күн бұрын
Very nice video. I do need further help with using the new querystring tag with pagination. I lose the queryset = model.object.all().filter(....) when I page forward. I cannot find an example of the pagination / view code. When I use your example when paging next I lose all the html formating. Just shoves all the table data to top left of screen. I appreciate all help. Thank you
@SatishKumar-hy6xm
@SatishKumar-hy6xm 3 ай бұрын
I like the tutorial most
@bugbytes3923
@bugbytes3923 3 ай бұрын
Thanks a lot!
@frameff9073
@frameff9073 4 ай бұрын
good thank
@bugbytes3923
@bugbytes3923 3 ай бұрын
Thanks!
@hexatested
@hexatested 4 ай бұрын
Neat
@Pradeep_prasad
@Pradeep_prasad 4 ай бұрын
Make a video on Django react crud operation with login sign up auth
@gavinjones3724
@gavinjones3724 3 ай бұрын
Can someone test 'LoginRequiredMiddleware' be used django all-auth? I might be a unique case, but with django all-auth and the LOGIN_URL set get the thing redirecting like crazy and I get ERR_TOO_MANY_REDIRECTS . Most likely just me but would love feedback. Thanks
@rmireckiyt
@rmireckiyt 3 ай бұрын
Can you do sorting on user__username ?
@leftblank5315
@leftblank5315 4 ай бұрын
I want Django to natively support sqlalchemy. As much as I like Django ORM SA is just miles above it
@bugbytes3923
@bugbytes3923 3 ай бұрын
That's interesting - I've heard mixed opinions on this. I do like both pretty equally, personally.
@leftblank5315
@leftblank5315 3 ай бұрын
Connection pooling in SA is across all SQL dialects, for example. Django ORM just now got it and only for postgresql. Little things like, showing an executing query in SA is easy, just enable echo=True in the engine definition. In Django you have to jump through hoops in the logging settings or install silk. Union, complex joins in SA are a lot more intuitive than Annotate. The downside in SA there is no built-in version control, you have to use alembic
@jpongthep
@jpongthep 4 ай бұрын
list_display = ["foreign_field__field",] :D :D :D
@codernerd7076
@codernerd7076 4 ай бұрын
I feel like Django moving way too slow compare to other frameworks like Laravel and Next.js
@Yarkanlaki
@Yarkanlaki 4 ай бұрын
It seems Django conts are busy with fixing alot of bugs until they stabilize it and then add new futures
@codernerd7076
@codernerd7076 4 ай бұрын
@@Yarkanlaki nop they mostly holding lots of meetings to work on a feature or fix and it takes a lot of voting and so on for them to finally agree on something. there is a foundation behind Django and Python that's why things move so slowly and there is barely any marketing for this platform.
@bugbytes3923
@bugbytes3923 4 ай бұрын
Interesting perspective, I definitely agree to a point.
@TomOhle1
@TomOhle1 4 ай бұрын
I can understand why you could see things this way and I really can’t black and white agree/disagree. However, if you are open to it, may I kindly add to your post, offer another viewpoint and sprinkle in some grey to what is often presented as a black/white argument!? I think the perception that Django is ‘slow’ to adopt new features is largely born from the fact that it is a robust, battery’s included web framework where most of the ‘new’ stuff is already enterprise battle tested and proven at scale and has been for a long time with big enterprises - templates, request management, form validation, a robust user permisioning model, ORM, etc.. this isn’t exciting new stuff for Django but very important when building a robust enterprise app. Django has been around for quite a while and evolved a LOT. Out of box it gives you a LOT of enterprise grade capabilities that you take for granted until you go looking for an equivalent on another framework e.g. picking a router or a robust ORM, test integration etc… Django as a project, culturally tries not to be bleeding edge but instead prefers to be leading edge - this is a philosophy that serves developers who use it well. Generally speaking when you build an app, you can sleep easy that an updated version of Django is not going to break your app. Things don’t break because of a new fad and some new capability being rushed out the door. Changes are considered (even debated :D ). When the framework already caters very well to most of the ‘boring’ stuff it can create a perception that it is slow/dated to adopt new. I do think that slowness to adopt (rewrite) portions of the codebase to Async may have fed that perception of slowness. Similarly the Django Template Library is only relatively recently getting a second life with HTMX, Alpine.JS. However it’s this flexibility also that you can use Django as an API layer and use it with a React front-end or Angular front-end that is also one of it’s strengths. If we look at more recent exercises such as partial page refreshes, django template partials and embracing noJS frameworks like Alpine.js and HTMX, I think that arguably the Django community is embracing change very well and the front end (presentation layer which I feel was Djangos weakest area) is now becoming very strong again. Just my 0.02. Happy developing you guys and hope that whatever you’re using to build with that you are enjoying :)
@leftblank5315
@leftblank5315 4 ай бұрын
If anything, I would be enraged if Django became anything like laravel. It's a clusterfuck of over engineered shit, deprecating as it releases...
@HoHj-r9s
@HoHj-r9s 4 ай бұрын
pip install django == 4.2
@MahmoudDuhaidi
@MahmoudDuhaidi 3 ай бұрын
hi i have register, login and dash pages i make LoginRequired on my dash when i enter to dash by ulr it goes to login but when i make login i kept in the login page is not going to dash and get this url [23/Aug/2024 00:28:00] "GET /pages/login?next=/pages/dash HTTP/1.1" 200 10805 , the ulr and the view all is correct can u help me with this ? why i kept in login page and how to fix it
@bugbytes3923
@bugbytes3923 3 ай бұрын
@@MahmoudDuhaidi you would need to post some code, perhaps someone can help, it sounds like the login view is not correctly authenticating users
django-cotton - Modern Components in Django!
20:41
BugBytes
Рет қаралды 10 М.
django-unfold - TailwindCSS Admin Theme for Django!
25:14
BugBytes
Рет қаралды 8 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 639 М.
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 11 МЛН
Django 5.1 will be more secure by default
6:53
Dennis Ivy
Рет қаралды 10 М.
React 19: The Features You Actually Want
13:05
Shruti Kapoor
Рет қаралды 2,4 М.
Django Middleware - Defining a Custom Logging Middleware
25:04
Better Stack
Рет қаралды 1,1 М.
Django Signals - Introduction!
18:20
BugBytes
Рет қаралды 2,8 М.
NanoDjango - single-file Django apps | uv integration
19:37
Implementing the Transactional Outbox Pattern from Scratch
24:27
Milan Jovanović
Рет қаралды 10 М.
django Architecture - Connection Management
15:10
Hussein Nasser
Рет қаралды 51 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН