Press enter and you can see that the first name, last name and Email ID of the user has appeared here.
You can check it from here.
See, the first name, last name and email ID.
Understood How the user is logging in? Right? Clear? Perfectly?
Now let’s go.
Now let's see about a user which is not in the database, let’s see what happens when he logs in.
Suppose I write firstname.lastname@example.org & I wrote the password r123.
We can see here it is written user query does not exist.
And it will bring us to this page, why?
Because the user query does not exist.
Which means it did not get the user itself.
So it will bring us to this error page.
so if you enter a valid user, that valid user will login and his details will be shown on the homepage in this way.
So in this way with the help of a session you can do the user login on your website.
If you have any queries or comments, click the discussion button below the video and post there. This way, you will be able to connect to fellow learners and discuss the course. Also, Our Team will try to solve your query.
In the next topic, we will see Uploading images through Django, in which I'll show you by uploading the images and then show them on the browser.
That with the help of Django, how we can upload the images and then show them on the browser.
In Server Side Validation, the user's input is transferred to the server and validated using one of the server side programming languages such as ASP.Net, PHP, and others. Following the server-side validation, the feedback is given to the client via a new dynamically produced web page.
Using both is the best solution. The gateway into the rest of the system, server-side validation, treats all incoming input as untrusted. Client-side validation aims to make the user's experience as smooth as possible while also reducing server burden.
login function my view(request): username = request auth import authenticate password = request POST['username'] POST['password'] If user is not authenticated, use authenticate(username=username, password=password). Login(request, user) # Redirect to a success page if the user is active.
where will i get code access for the project source code?
this course structure is very good. I suggest for learning to this website.
Superb and amazing 😍🤩 enjoyable experience.
Er Komal Gupta
thnku so much sir. after waisting so mch time in boring videos.i learned only from here.explained vry well and i will suggest evryone that learnvern is the bst online plateform where you can learnalot
ajax lesson was something like boring . But , learned a lot with the sunit sir . Just learned how to deal with ajax in django