Why Python Decorators are used?
2:04
Пікірлер
@rcteejay1436
@rcteejay1436 6 күн бұрын
Bro can u help me..I got stuck in the middle of sign up page 16:30
@Dhruv-f6b
@Dhruv-f6b Ай бұрын
hi sir, @15:42 when you sign in, you get redirected to the home.html page and later when you sign up, you get redirected to the sign in page. I'm not getting redirected in both cases. Will this issue be solved if I change the django version as I'm using the latest 5.1.1 version.
@rohan-yeole
@rohan-yeole Ай бұрын
It's not an version issue...make sure you added redirect constant in setting file for logout.
@Aj-bw5rm
@Aj-bw5rm Ай бұрын
Sorry but bilkul samjh nahi aya
@rohan-yeole
@rohan-yeole Ай бұрын
haha...okay...will do better next time...
@siddusidh9705
@siddusidh9705 Ай бұрын
I have a doubt without creating database directly we can store new users
@rohan-yeole
@rohan-yeole Ай бұрын
can you elaborate?
@crclub
@crclub Ай бұрын
Do i need to set the project in virtual box ?
@rohan-yeole
@rohan-yeole Ай бұрын
you can!
@iamcardi3215
@iamcardi3215 Ай бұрын
I have it working but when I try to go to my signup it gives me an UnboundLocalError at /signup/
@Gurukul-sm
@Gurukul-sm 2 ай бұрын
Teach fully advance django.custom login, logout , register, Middle were,group middle were,jet,rest API nd advance topics
@rohan-yeole
@rohan-yeole Ай бұрын
thanks for suggestions, will do in sometime
@Gurukul-sm
@Gurukul-sm 2 ай бұрын
Teach fully advance django.custom login, logout , register, Middle were,group middle were,jet,rest API nd advance topics
@juanjosechamorro1615
@juanjosechamorro1615 2 ай бұрын
If you have some error with logut the last version has differents problems with this, I recomend you django 4.2 version
@rohan-yeole
@rohan-yeole Ай бұрын
4.2 is more stable than latest.
@AhmadMousavi-pp5xr
@AhmadMousavi-pp5xr 2 ай бұрын
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 2 ай бұрын
do you created html files in templates folder? can you re-check?
@SATHISHKUMAR-hg5et
@SATHISHKUMAR-hg5et 2 ай бұрын
in the video you didn't complete the if else loop but how it is working for you
@rohan-yeole
@rohan-yeole 2 ай бұрын
which if else? any context?
@SATHISHKUMAR-hg5et
@SATHISHKUMAR-hg5et 2 ай бұрын
the github link is not working
@rohan-yeole
@rohan-yeole 2 ай бұрын
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
@sufiyan.b7214
@sufiyan.b7214 3 ай бұрын
Logout 405 error /Same problem sir can you show the def function of logout and logout.html file
@rohan-yeole
@rohan-yeole Ай бұрын
please refer github link
@artbylucky4006
@artbylucky4006 Ай бұрын
Still same error ​@@rohan-yeole
@PraiseNkhoma_2005
@PraiseNkhoma_2005 3 ай бұрын
The submit button for login page isn't working after signing up
@PraiseNkhoma_2005
@PraiseNkhoma_2005 3 ай бұрын
Hello may you respond
@rohan-yeole
@rohan-yeole Ай бұрын
what happened exactly. any error
@AdarshVK-g1q
@AdarshVK-g1q 3 ай бұрын
please tell how to create user
@rohan-yeole
@rohan-yeole Ай бұрын
visit signup link.
@cutecatstv26
@cutecatstv26 3 ай бұрын
This is very useful for me, create more like this
@rohan-yeole
@rohan-yeole 3 ай бұрын
Thank you so much
@rohithgowdax
@rohithgowdax 3 ай бұрын
Thank You so Much sir 😍
@gamingarea9011
@gamingarea9011 3 ай бұрын
Django ka default page show ho rha hai. Debug false kar diya phir bhi keh raha hai debug true hai
@Krishna-y2n
@Krishna-y2n 3 ай бұрын
sir getting error while logout please help and provided GitHub url says "not found" 127.0.0.1:8000/accounts/logout/ Error: Method Not Allowed: /accounts/logout/ "GET /accounts/logout/ HTTP/1.1" 405 0
@ASTRALABSGH
@ASTRALABSGH 4 ай бұрын
nice video ver educational can you please do one with top verification
@rohan-yeole
@rohan-yeole 4 ай бұрын
Okay..Will see if time permits....cheers
@ifiokudofe1368
@ifiokudofe1368 4 ай бұрын
The best video on the topic so far
@rohan-yeole
@rohan-yeole 4 ай бұрын
thank you.
@MSaivarshitha
@MSaivarshitha 4 ай бұрын
github page is not working ..could u give correct one
@rohan-yeole
@rohan-yeole 4 ай бұрын
can u explain more?
@JainyVarghese
@JainyVarghese 4 ай бұрын
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 4 ай бұрын
did you added login_redirect_url = '/' in settings file?
@jainmaria5630
@jainmaria5630 4 ай бұрын
@@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 3 ай бұрын
can you send proper code to update there
@QuangThangTa-qi1zc
@QuangThangTa-qi1zc 5 ай бұрын
it is not logging out, I got HTTP ERROR 405
@MerinaFidelis
@MerinaFidelis 4 ай бұрын
Create a form of logout and set the method to post
@sufiyan.b7214
@sufiyan.b7214 3 ай бұрын
Logout 405 error /Same problem sir can you show the def function of logout and logout.html file
@crclub
@crclub Ай бұрын
​@@MerinaFidelis after that only that error
@akashkumarmaurya7104
@akashkumarmaurya7104 26 күн бұрын
Check url and in the form
@Anime_4ver
@Anime_4ver 24 күн бұрын
The logout _user is my url path for logout view. logout(request) is inbuilt function. def logout_user(request): logout(request) messages.success(request, "Logged Out") return render(request, login.html)
@QuangThangTa-qi1zc
@QuangThangTa-qi1zc 5 ай бұрын
it is not logging out , I got HTTP ERROR 405 error
@YuvrajBagga
@YuvrajBagga 3 ай бұрын
same issue
@thehindu9972
@thehindu9972 5 ай бұрын
Bro can u pls share your video link : Django Deployment
@rohan-yeole
@rohan-yeole 5 ай бұрын
what exactly "Django Deployment" on?
@thehindu9972
@thehindu9972 5 ай бұрын
@@rohan-yeole anyone bro but I want to make my project into live 😞 share one best vidoe
@rohan-yeole
@rohan-yeole 5 ай бұрын
@@thehindu9972 here its a free platform kzbin.info/www/bejne/Y2appWyNhLyDfbMsi=x8vcRC6zdEuvbC0o
@VapTex
@VapTex 5 ай бұрын
it is not logging out , sadly doesnt work
@rohan-yeole
@rohan-yeole 5 ай бұрын
Does other URLS works for you? what error you faced?
@eugeniocapriccioso
@eugeniocapriccioso 5 ай бұрын
Thank you bro your tutorial is concise and clear
@rohan-yeole
@rohan-yeole 5 ай бұрын
Glad to hear that
@salwanoor1809
@salwanoor1809 5 ай бұрын
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 5 ай бұрын
This you created base.html file?, I think not, make sure you have that in templates folder
@AnithaPoly
@AnithaPoly 6 ай бұрын
sir from signup page not redirecting to login page
@rohan-yeole
@rohan-yeole 6 ай бұрын
please check redirect from signup view, should be "login"
@sachinprasad7594
@sachinprasad7594 6 ай бұрын
Redirect kaha se aya
@rohan-yeole
@rohan-yeole 6 ай бұрын
timeframe?
@sachinprasad7594
@sachinprasad7594 6 ай бұрын
@@rohan-yeole likha hai
@joswinemmanuel
@joswinemmanuel 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
this is nice. generally use django version 4.0 or 4.1, they are stable now
@thatomashalaba6965
@thatomashalaba6965 4 ай бұрын
@@rohan-yeole I changed my install to 4.1 and 4.2.8 but still getting Method Not Allowed (GET): /accounts/logout/
@kisirinyasiraje9117
@kisirinyasiraje9117 7 ай бұрын
thanks broo but my css didnt load
@rohan-yeole
@rohan-yeole 7 ай бұрын
hey hi, you need to run python manage.py collectstatic command in terminal to collect css,img or js files to serve. also with this static root setting in settings.py file.
@SiyaSharma-u2t
@SiyaSharma-u2t 7 ай бұрын
Sir please make a one short for note sharing app using django
@rohan-yeole
@rohan-yeole 7 ай бұрын
can you elaborate? didn't get it. you mean youtube short?
@meet.krunalrana
@meet.krunalrana 7 ай бұрын
why did you jump steps , need to add user creation steps 15:38
@rohan-yeole
@rohan-yeole 7 ай бұрын
Might have missed to show in video while editing.
@AdarshVK-g1q
@AdarshVK-g1q 3 ай бұрын
can you tell how to add user in this sir
@krisuu4106
@krisuu4106 7 ай бұрын
how did u do /accounts/logout/ at 15:50 , for me its not working
@rohan-yeole
@rohan-yeole 7 ай бұрын
here you can find all routes docs.djangoproject.com/en/5.0/topics/auth/default/#module-django.contrib.auth.views
@SiyaSharma-u2t
@SiyaSharma-u2t 7 ай бұрын
How to update the page for the note sharing app
@rohan-yeole
@rohan-yeole 7 ай бұрын
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.
@Zarakkahnn
@Zarakkahnn 7 ай бұрын
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 7 ай бұрын
what is happening?
@Zarakkahnn
@Zarakkahnn 7 ай бұрын
@@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 7 ай бұрын
that's just the nature of being a programmer, encountering errors is the only constant
@ramakanttiwari835
@ramakanttiwari835 7 ай бұрын
My logout functionality is not working
@rohan-yeole
@rohan-yeole 7 ай бұрын
what is actual error you are getting?
@Soulsandpiro
@Soulsandpiro 7 ай бұрын
Bhai shab 1st
@mvega8712
@mvega8712 7 ай бұрын
Please create more tutorials like this one... pretty impressive and straightforward
@thorodinson8187
@thorodinson8187 8 ай бұрын
Whats the username and password??
@rohan-yeole
@rohan-yeole 8 ай бұрын
the one you have created. through -- python manage.py createsuperuser
@thorodinson8187
@thorodinson8187 8 ай бұрын
@@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 6 ай бұрын
@@rohan-yeole How would you get the registration page to automatically make that superuser for you?
@AdarshVK-g1q
@AdarshVK-g1q 3 ай бұрын
​@@rohan-yeoleplease tell how to create user
@bilalazhar9139
@bilalazhar9139 8 ай бұрын
Template doesn't exit at? Error any solution?
@rohan-yeole
@rohan-yeole 8 ай бұрын
how you have configured templates in settings?
@harshalshah1058
@harshalshah1058 8 ай бұрын
static not working for me in link href line of base.html...how to resolve this?
@rohan-yeole
@rohan-yeole 8 ай бұрын
{% load static %} add this tag after head tag.
@harshalshah1058
@harshalshah1058 8 ай бұрын
@@rohan-yeole already added..still giving error
@rohan-yeole
@rohan-yeole 8 ай бұрын
@@harshalshah1058 could share code in comment, base.html
@VeeraBhadraGuptaCharugalla
@VeeraBhadraGuptaCharugalla 8 ай бұрын
Sir, whit what details you have logged in at 15:37 min
@meet.krunalrana
@meet.krunalrana 7 ай бұрын
you have to crate user using Django commands
@rohan-yeole
@rohan-yeole 7 ай бұрын
use python manage.py createsuperuser to create user.
@AdarshVK-g1q
@AdarshVK-g1q 3 ай бұрын
it's not working can you send correct code to create user
@VeeraBhadraGuptaCharugalla
@VeeraBhadraGuptaCharugalla 8 ай бұрын
With what details you have logged in at 15:37
@thorodinson8187
@thorodinson8187 8 ай бұрын
What did you put , mine is not working
@AdarshVK-g1q
@AdarshVK-g1q 3 ай бұрын
yes for me too it's not working
@ajimccullum2837
@ajimccullum2837 8 ай бұрын
Sir ,I have one doubt, please give the you mail??
@rohan-yeole
@rohan-yeole 8 ай бұрын
please reach out.
@9GameCastGameTv
@9GameCastGameTv 9 ай бұрын
thx <3
@crisp9734
@crisp9734 9 ай бұрын
bro remove signup warnings ofc no one like this warning
@rohan-yeole
@rohan-yeole 9 ай бұрын
Okay...but as learner person should know. Removing it may vary depending upon requirements.
@nandithass7326
@nandithass7326 9 ай бұрын
9:13 csrf is not working for me . showing templae does not exist
@rohan-yeole
@rohan-yeole 8 ай бұрын
Sid you restarted the server after creating an html file. Django server doesn't know if a new file is created!