Django Login and Registration | Django Authentication | Crash Course Tutorial | Rohan Yeole

  Рет қаралды 40,530

Rohan Yeole

Rohan Yeole

Күн бұрын

#login #authentic
Github -github.com/yeo...
Website - www.djangoproj...
Welcome to our comprehensive Django tutorial where we dive into the essentials of User Authentication and User Signup using Python. Whether you're a beginner or looking to sharpen your Django skills, this crash course is designed to guide you through the entire process of setting up a robust user system for your Django projects.In this tutorial, we'll cover the key concepts and steps involved in implementing secure user authentication and seamless user signup functionality. From project setup to coding, we'll walk you through each stage, ensuring you gain a solid understanding of Django's capabilities in managing user-related functionalities.By the end of this crash course, you'll be equipped with the knowledge and skills to integrate user authentication and signup features effortlessly into your Django projects. Join us on this learning journey and elevate your Python and Django development game. Don't forget to like, share, and subscribe for more valuable tutorials. Let's build something amazing together!#DjangoTutorial #PythonDevelopment #UserAuthentication #UserSignup #WebDevelopment #CrashCourse #DjangoProject #ProgrammingTutorial
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
INSTAGRAM ► / r.yeole
LINKEDIN ► / rohan-yeole-a90282136
TELEGRAM ► t.me/+PEXA0InM...

Пікірлер: 106
@juanjosechamorro1615
@juanjosechamorro1615 13 күн бұрын
If you have some error with logut the last version has differents problems with this, I recomend you django 4.2 version
@ifiokudofe1368
@ifiokudofe1368 2 ай бұрын
The best video on the topic so far
@rohan-yeole
@rohan-yeole 2 ай бұрын
thank you.
@Gurukul-sm
@Gurukul-sm Күн бұрын
Teach fully advance django.custom login, logout , register, Middle were,group middle were,jet,rest API nd advance topics
@cutecatstv26
@cutecatstv26 Ай бұрын
This is very useful for me, create more like this
@rohan-yeole
@rohan-yeole Ай бұрын
Thank you so much
@rohithgowdax
@rohithgowdax Ай бұрын
Thank You so Much sir 😍
@mvega8712
@mvega8712 5 ай бұрын
Please create more tutorials like this one... pretty impressive and straightforward
@AdarshVK-g1q
@AdarshVK-g1q 28 күн бұрын
please tell how to create user
@user-pw3so9pf1y
@user-pw3so9pf1y 5 ай бұрын
How to update the page for the note sharing app
@rohan-yeole
@rohan-yeole 5 ай бұрын
Pass on the I'd in url, use that id in function based view, with method of quesryset Somemodel.objects.filter(id=id).update(field=value). You must use PUT method of request to do this.
@sufiyan.b7214
@sufiyan.b7214 22 күн бұрын
Logout 405 error /Same problem sir can you show the def function of logout and logout.html file
@SATHISHKUMAR-hg5et
@SATHISHKUMAR-hg5et 15 күн бұрын
in the video you didn't complete the if else loop but how it is working for you
@rohan-yeole
@rohan-yeole 13 күн бұрын
which if else? any context?
@AhmadMousavi-pp5xr
@AhmadMousavi-pp5xr 14 күн бұрын
thanks its great but when i login at 15:50 , this error comes: TemplateDoesNotExist at / what can i do? i followed your actions
@rohan-yeole
@rohan-yeole 13 күн бұрын
do you created html files in templates folder? can you re-check?
@SATHISHKUMAR-hg5et
@SATHISHKUMAR-hg5et 15 күн бұрын
the github link is not working
@rohan-yeole
@rohan-yeole 13 күн бұрын
Thanks for letting me know. I have update in description. sharing here too github.com/yeole-rohan/User-Authentication-and-User-Signup-in-Python-using-Django-/tree/main
@Zarakkahnn
@Zarakkahnn 5 ай бұрын
Honestly I'm trying to follow each and every step but when i see an error it angers me a lot. I don't know what's the problem whenever i try to do something it never gets completed. In this tutorial when you do something it goes well but when i do it something pops up
@rohan-yeole
@rohan-yeole 5 ай бұрын
what is happening?
@Zarakkahnn
@Zarakkahnn 5 ай бұрын
@@rohan-yeole i had an html login page with a simple for ... I added the csrf_token in the form and it is showing it in the Html browser view as a text. Next i had created another page Dashboard.html where when i click on the Sign In button on the login.html page it would redirect it to the dashboard.html. but it is showing some error says template does not exist at accounts/login
@SufficientDaikon
@SufficientDaikon 5 ай бұрын
that's just the nature of being a programmer, encountering errors is the only constant
@QuangThangTa-qi1zc
@QuangThangTa-qi1zc 2 ай бұрын
it is not logging out, I got HTTP ERROR 405
@MerinaFidelis
@MerinaFidelis 2 ай бұрын
Create a form of logout and set the method to post
@sufiyan.b7214
@sufiyan.b7214 22 күн бұрын
Logout 405 error /Same problem sir can you show the def function of logout and logout.html file
@joswinemmanuel
@joswinemmanuel 4 ай бұрын
Sir when I do /accounts/logout/ at 15:50 , it is not redirecting to Django administration Logged out, but showing 'This page is not working HTTP ERROR 405'... Sir can you help me.... Tell me why
@joswinemmanuel
@joswinemmanuel 4 ай бұрын
Sir problem was solved when I installed Django 4.2.8... Frist Django 5.0.4 was installed... That caused the error
@rohan-yeole
@rohan-yeole 4 ай бұрын
this is nice. generally use django version 4.0 or 4.1, they are stable now
@thatomashalaba6965
@thatomashalaba6965 2 ай бұрын
@@rohan-yeole I changed my install to 4.1 and 4.2.8 but still getting Method Not Allowed (GET): /accounts/logout/
@PraiseNkhoma-i3k
@PraiseNkhoma-i3k 25 күн бұрын
The submit button for login page isn't working after signing up
@PraiseNkhoma-i3k
@PraiseNkhoma-i3k 23 күн бұрын
Hello may you respond
@user-pw3so9pf1y
@user-pw3so9pf1y 5 ай бұрын
Sir please make a one short for note sharing app using django
@rohan-yeole
@rohan-yeole 4 ай бұрын
can you elaborate? didn't get it. you mean youtube short?
@user-nd9zy8ej5z
@user-nd9zy8ej5z 6 ай бұрын
Sir, whit what details you have logged in at 15:37 min
@meet.krunalrana
@meet.krunalrana 5 ай бұрын
you have to crate user using Django commands
@rohan-yeole
@rohan-yeole 4 ай бұрын
use python manage.py createsuperuser to create user.
@AdarshVK-g1q
@AdarshVK-g1q 28 күн бұрын
it's not working can you send correct code to create user
@salwanoor1809
@salwanoor1809 3 ай бұрын
Hello. I don't know why in my views.py return render(request,"home.html", {}) comes with exception thrown 'base' is not a registered namespace. Please help me out on this.
@rohan-yeole
@rohan-yeole 3 ай бұрын
This you created base.html file?, I think not, make sure you have that in templates folder
@JainyVarghese
@JainyVarghese 2 ай бұрын
sir, from the login page I can't go to the home page. it says page not found. please help me sir, I got stuck here.
@rohan-yeole
@rohan-yeole 2 ай бұрын
did you added login_redirect_url = '/' in settings file?
@jainmaria5630
@jainmaria5630 2 ай бұрын
@@rohan-yeole I updated the settings, and now it is working fine. Thank you so much for the excellent video. Hope we get more videos in the future.
@AdarshVK-g1q
@AdarshVK-g1q 28 күн бұрын
can you send proper code to update there
@ASTRALABSGH
@ASTRALABSGH 2 ай бұрын
nice video ver educational can you please do one with top verification
@rohan-yeole
@rohan-yeole 2 ай бұрын
Okay..Will see if time permits....cheers
@MSaivarshitha
@MSaivarshitha 2 ай бұрын
github page is not working ..could u give correct one
@rohan-yeole
@rohan-yeole 2 ай бұрын
can u explain more?
@AnithaPoly
@AnithaPoly 3 ай бұрын
sir from signup page not redirecting to login page
@rohan-yeole
@rohan-yeole 3 ай бұрын
please check redirect from signup view, should be "login"
@nandithass7326
@nandithass7326 7 ай бұрын
9:13 csrf is not working for me . showing templae does not exist
@rohan-yeole
@rohan-yeole 6 ай бұрын
Sid you restarted the server after creating an html file. Django server doesn't know if a new file is created!
@VapTex
@VapTex 3 ай бұрын
it is not logging out , sadly doesnt work
@rohan-yeole
@rohan-yeole 3 ай бұрын
Does other URLS works for you? what error you faced?
@harshalshah1058
@harshalshah1058 6 ай бұрын
static not working for me in link href line of base.html...how to resolve this?
@rohan-yeole
@rohan-yeole 6 ай бұрын
{% load static %} add this tag after head tag.
@harshalshah1058
@harshalshah1058 6 ай бұрын
@@rohan-yeole already added..still giving error
@rohan-yeole
@rohan-yeole 6 ай бұрын
@@harshalshah1058 could share code in comment, base.html
@studentcodehub9602
@studentcodehub9602 7 ай бұрын
I cannot open my signup page I have this Error: 'WSGIRequest' object has no attribute 'thod'
@rohan-yeole
@rohan-yeole 7 ай бұрын
When did you get this error?
@studentcodehub9602
@studentcodehub9602 7 ай бұрын
@@rohan-yeole I'm having this error: ==============error=================== AttributeError at /signup/ 'WSGIRequest' object has no attribute 'thod' Django Version: 3.2.9 Python Version: 3.10.0 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'base'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] ==============error=================== Am I missing referrences? like applicaation to install in pip? or is it the version of python I'm using?
@studentcodehub9602
@studentcodehub9602 7 ай бұрын
@@rohan-yeole when I implement this code: if request.thod == "POST": # form = UserCreationForm(request.POST or None) # if form.is_valid(): # form.save() # username = form.cleaned_data.get('username') # else: # form = UserCreationForm() # return render(request, "registration/signup.html", {"form": form}) but whit this no error: def authView(request): form = UserCreationForm() return render(request, "registration/signup.html", {"form": form})
@studentcodehub9602
@studentcodehub9602 7 ай бұрын
@@rohan-yeole after I implement this: def authView(request): if request.thod == "POST": form = UserCreationForm(request.POST or None) if form.is_valid(): form.save() username = form.cleaned_data.get('username') else: form = UserCreationForm() return render(request, "registration/signup.html", {"form": form}) ======================================================================= but this I have no error: def authView(request): form = UserCreationForm() return render(request, "registration/signup.html", {"form": form})
@aniBunny12378
@aniBunny12378 4 ай бұрын
Did you mean to write method*
@thehindu9972
@thehindu9972 2 ай бұрын
Bro can u pls share your video link : Django Deployment
@rohan-yeole
@rohan-yeole 2 ай бұрын
what exactly "Django Deployment" on?
@thehindu9972
@thehindu9972 2 ай бұрын
@@rohan-yeole anyone bro but I want to make my project into live 😞 share one best vidoe
@rohan-yeole
@rohan-yeole 2 ай бұрын
@@thehindu9972 here its a free platform kzbin.info/www/bejne/Y2appWyNhLyDfbMsi=x8vcRC6zdEuvbC0o
@user-nd9zy8ej5z
@user-nd9zy8ej5z 6 ай бұрын
With what details you have logged in at 15:37
@thorodinson8187
@thorodinson8187 5 ай бұрын
What did you put , mine is not working
@AdarshVK-g1q
@AdarshVK-g1q 28 күн бұрын
yes for me too it's not working
@ramakanttiwari835
@ramakanttiwari835 5 ай бұрын
My logout functionality is not working
@rohan-yeole
@rohan-yeole 5 ай бұрын
what is actual error you are getting?
@meet.krunalrana
@meet.krunalrana 5 ай бұрын
why did you jump steps , need to add user creation steps 15:38
@rohan-yeole
@rohan-yeole 4 ай бұрын
Might have missed to show in video while editing.
@AdarshVK-g1q
@AdarshVK-g1q 28 күн бұрын
can you tell how to add user in this sir
@krisuu4106
@krisuu4106 5 ай бұрын
how did u do /accounts/logout/ at 15:50 , for me its not working
@rohan-yeole
@rohan-yeole 4 ай бұрын
here you can find all routes docs.djangoproject.com/en/5.0/topics/auth/default/#module-django.contrib.auth.views
@DATA_MACHINE22
@DATA_MACHINE22 8 ай бұрын
Rohan username password button not showing up after changing signup.html file
@rohan-yeole
@rohan-yeole 8 ай бұрын
Can you specify at what part of time and what you have changed?
@DATA_MACHINE22
@DATA_MACHINE22 8 ай бұрын
@@rohan-yeoleafter updating sign up.html and login.html after 9:13 I’m unable to see username sign up submit form on front end it shows Template doesn’t exist at signup where I wrote the same code as you mentioned in signup and login file
@rohan-yeole
@rohan-yeole 8 ай бұрын
For signup as u mentioned you will have to create a form. If you follow ahead you will be able to create a form and can see it on frontend. For template not exist make sure in view provided correct path in render method. Additionally in settings file, to templates block make sure to add BASE_DIR / "templates". Hope this will help. I urge you go over all tutorial. Your doubt will be solved. Thanks
@DATA_MACHINE22
@DATA_MACHINE22 8 ай бұрын
@@rohan-yeolethanks signup is working now I didn’t created template/registration directory, now it works thanks
@nandithass7326
@nandithass7326 7 ай бұрын
@@DATA_MACHINE22 what?
@9GameCastGameTv
@9GameCastGameTv 6 ай бұрын
thx
@crisp9734
@crisp9734 6 ай бұрын
bro remove signup warnings ofc no one like this warning
@rohan-yeole
@rohan-yeole 6 ай бұрын
Okay...but as learner person should know. Removing it may vary depending upon requirements.
@sachinprasad7594
@sachinprasad7594 3 ай бұрын
Redirect kaha se aya
@rohan-yeole
@rohan-yeole 3 ай бұрын
timeframe?
@sachinprasad7594
@sachinprasad7594 3 ай бұрын
@@rohan-yeole likha hai
@QuangThangTa-qi1zc
@QuangThangTa-qi1zc 2 ай бұрын
it is not logging out , I got HTTP ERROR 405 error
@YuvrajBagga
@YuvrajBagga Ай бұрын
same issue
@thorodinson8187
@thorodinson8187 5 ай бұрын
Whats the username and password??
@rohan-yeole
@rohan-yeole 5 ай бұрын
the one you have created. through -- python manage.py createsuperuser
@thorodinson8187
@thorodinson8187 5 ай бұрын
@@rohan-yeole I registered and then logged in , then it worked . I was directly trying to login(was my mistake) , anyways thanks for the video it was great👍
@cheddaberetta11
@cheddaberetta11 4 ай бұрын
@@rohan-yeole How would you get the registration page to automatically make that superuser for you?
@AdarshVK-g1q
@AdarshVK-g1q 28 күн бұрын
​@@rohan-yeoleplease tell how to create user
@ajimccullum2837
@ajimccullum2837 6 ай бұрын
Sir ,I have one doubt, please give the you mail??
@rohan-yeole
@rohan-yeole 6 ай бұрын
please reach out.
@nandithass7326
@nandithass7326 7 ай бұрын
after updating sign up.html and login.html after 9:13 I’m unable to see username sign up submit form on front end it shows Template doesn’t exist at signup where I wrote the same code as you mentioned in signup and login file.
@rohan-yeole
@rohan-yeole 7 ай бұрын
Template doesn’t exist ----> this may come if you havn't added or added but didn't restarted server. please check this.
@user-od9ip1nr6l
@user-od9ip1nr6l 7 ай бұрын
I m getting the webpage but csrf nd {{form}} is being displayed there with submit button. No username and password
@rohan-yeole
@rohan-yeole 7 ай бұрын
@@user-od9ip1nr6l can you discribe this "No username and password", is it label or something else?
@user-od9ip1nr6l
@user-od9ip1nr6l 7 ай бұрын
I meqn i am not getting those when i load my webpage
@Gurukul-sm
@Gurukul-sm Күн бұрын
Teach fully advance django.custom login, logout , register, Middle were,group middle were,jet,rest API nd advance topics
Comfortable 🤣 #comedy #funny
00:34
Micky Makeover
Рет қаралды 16 МЛН
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 19 МЛН
天使救了路飞!#天使#小丑#路飞#家庭
00:35
家庭搞笑日记
Рет қаралды 84 МЛН
Django Login Form and User Authentication
17:01
Dave Gray
Рет қаралды 11 М.
Scammed selling my MacBook, almost
15:09
Alex Ziskind
Рет қаралды 36 М.
How This New Battery is Changing the Game
12:07
Undecided with Matt Ferrell
Рет қаралды 101 М.
ASMR Programming - Animated Login Page - No Talking
18:18
AsmrProg
Рет қаралды 1,5 МЛН
User registration and authentication in Django
58:35
Cloud With Django
Рет қаралды 31 М.
phone for yourself 📱#shorts
0:17
RELAXING DAILY
Рет қаралды 4,6 МЛН
🔥НОВАЯ БАТАРЕЯ?😮
0:40
Demin's Lounge
Рет қаралды 166 М.
POV: You Find a 🗑️ Full of iPhones ⭐
0:13
Shakeuptech
Рет қаралды 1,4 МЛН