Django Tutorial #28 - Checking Login Status
ฝัง
- เผยแพร่เมื่อ 28 ต.ค. 2024
- DONATE :) - www.paypal.me/...
----- COURSE LINKS:
Python tutorials - goo.gl/xD2AvX
Course files - github.com/iam...
Django docs - docs.djangopro...
Atom editor - atom.io/a
CMDER - cmder.net/
======== Other Tutorials =========
----- NODE.JS TUTORIALS
• Node JS Tutorial for B...
----- MONGODB TUTORIALS
• MongoDB Tutorial for B...
----- SUBSCRIBE TO CHANNEL - / @netninja
======== Social Links ==========
Twitter - @TheNetNinja - / thenetninjauk
Patreon - / thenetninja
Almost finished,it's been wonderful series so far,a million thanks sir
'Swanky' lmao
Loved the whole series! Thank you for making these tutorials! They're pretty awesome!
Here is code to display current logging name.
{% if user.is_authenticated %}
Welcome, {{ user.username }}. Thanks for logging in.
{% endif %}
"alright then so things are looking pretty swanky so far" is my new favorite thing to say (jk). Your tutorials are great man keep up the great work. I was wondering if you could make a Flask tutorial too in the future :)
It is still going smoothly, thanks, Sir.
In user.is_authenticated What is the word "user" referencing exactly? Thank you.
How can we access the "user" object in the template? Shouldn't we pass it within the dictionary from the views.py file or has it a global scope?
This should answer your question: stackoverflow.com/questions/31896103/how-does-template-in-django-get-the-user-object
Great video keep it up. Thanks i love them all.
Great Tutorial thanks
Please can you do how to create a custom login/signup form with extra more fields?
here you're docs.djangoproject.com/en/2.0/topics/auth/customizing/
ElGovanni thanks mate
great series, but i'm confused why do we need Front-end then ? like React ? and when i see React i'm like why do we need backend Lmao
like for me we can do everything with django...
It will be cool a series on how to connect front-end and back-end ? like React + node
why my template tag is not working inside base_layout.html. This is the actual problem I am dealing with.
Answer: You don't have a space between the tag name url and the parameter 'accounts:login', so Django interprets it as one token. It's also customary to use spaces after the opening tag and before the closing tag, to increase readability, so you'd get {%url 'accounts:login'%}... Thankyou
can i use logout button as *
Nope ,because you've to send a post request
@@amongdoomers9464 could you have all the links as buttons?
@@alexanderislas4382 I didn't get it.Explain please
@@amongdoomers9464 So how, the video was made, the logout button is different. Why didn't he make all the links as buttons?
@@alexanderislas4382 Whenever you want to send/get a post request we should use form with submit input inside it. Other wise ,there'll be no need to make links as butttons .Hope I answered your question, if not please clarify
thx
1:55 them code de check Login Status
Thaaaaaaaaaaaaaaaaaaaaaanks
ANDROID TUTORIALS PLEASE ?????????????????