Logout 405 error /Same problem sir can you show the def function of logout and logout.html file
@PraiseNkhoma-i3k6 күн бұрын
The submit button for login page isn't working after signing up
@PraiseNkhoma-i3k5 күн бұрын
Hello may you respond
@AdarshVK-g1q9 күн бұрын
please tell how to create user
@cutecatstv2618 күн бұрын
This is very useful for me, create more like this
@rohan-yeole13 күн бұрын
Thank you so much
@rohithgowdax21 күн бұрын
Thank You so Much sir 😍
@gamingarea901122 күн бұрын
Django ka default page show ho rha hai. Debug false kar diya phir bhi keh raha hai debug true hai
@Krishna-y2n23 күн бұрын
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Ай бұрын
nice video ver educational can you please do one with top verification
@rohan-yeoleАй бұрын
Okay..Will see if time permits....cheers
@ifiokudofe1368Ай бұрын
The best video on the topic so far
@rohan-yeoleАй бұрын
thank you.
@MSaivarshithaАй бұрын
github page is not working ..could u give correct one
@rohan-yeoleАй бұрын
can u explain more?
@JainyVargheseАй бұрын
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Ай бұрын
did you added login_redirect_url = '/' in settings file?
@jainmaria5630Ай бұрын
@@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-g1q9 күн бұрын
can you send proper code to update there
@QuangThangTa-qi1zc2 ай бұрын
it is not logging out, I got HTTP ERROR 405
@MerinaFidelisАй бұрын
Create a form of logout and set the method to post
@sufiyan.b72144 күн бұрын
Logout 405 error /Same problem sir can you show the def function of logout and logout.html file
@QuangThangTa-qi1zc2 ай бұрын
it is not logging out , I got HTTP ERROR 405 error
@YuvrajBaggaАй бұрын
same issue
@thehindu99722 ай бұрын
Bro can u pls share your video link : Django Deployment
@rohan-yeole2 ай бұрын
what exactly "Django Deployment" on?
@thehindu99722 ай бұрын
@@rohan-yeole anyone bro but I want to make my project into live 😞 share one best vidoe
@rohan-yeole2 ай бұрын
@@thehindu9972 here its a free platform kzfaq.info/get/bejne/Y5t2p5yItL20d4U.htmlsi=x8vcRC6zdEuvbC0o
@VapTex2 ай бұрын
it is not logging out , sadly doesnt work
@rohan-yeole2 ай бұрын
Does other URLS works for you? what error you faced?
@eugeniocapriccioso2 ай бұрын
Thank you bro your tutorial is concise and clear
@rohan-yeole2 ай бұрын
Glad to hear that
@salwanoor18092 ай бұрын
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-yeole2 ай бұрын
This you created base.html file?, I think not, make sure you have that in templates folder
@AnithaPoly3 ай бұрын
sir from signup page not redirecting to login page
@rohan-yeole3 ай бұрын
please check redirect from signup view, should be "login"
@sachinprasad75943 ай бұрын
Redirect kaha se aya
@rohan-yeole3 ай бұрын
timeframe?
@sachinprasad75943 ай бұрын
@@rohan-yeole likha hai
@joswinemmanuel3 ай бұрын
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
@joswinemmanuel3 ай бұрын
Sir problem was solved when I installed Django 4.2.8... Frist Django 5.0.4 was installed... That caused the error
@rohan-yeole3 ай бұрын
this is nice. generally use django version 4.0 or 4.1, they are stable now
@thatomashalaba69652 ай бұрын
@@rohan-yeole I changed my install to 4.1 and 4.2.8 but still getting Method Not Allowed (GET): /accounts/logout/
@kisirinyasiraje91174 ай бұрын
thanks broo but my css didnt load
@rohan-yeole4 ай бұрын
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.
@user-pw3so9pf1y4 ай бұрын
Sir please make a one short for note sharing app using django
@rohan-yeole4 ай бұрын
can you elaborate? didn't get it. you mean youtube short?
@meet.krunalrana4 ай бұрын
why did you jump steps , need to add user creation steps 15:38
@rohan-yeole4 ай бұрын
Might have missed to show in video while editing.
@AdarshVK-g1q9 күн бұрын
can you tell how to add user in this sir
@krisuu41064 ай бұрын
how did u do /accounts/logout/ at 15:50 , for me its not working
@rohan-yeole4 ай бұрын
here you can find all routes docs.djangoproject.com/en/5.0/topics/auth/default/#module-django.contrib.auth.views
@user-pw3so9pf1y4 ай бұрын
How to update the page for the note sharing app
@rohan-yeole4 ай бұрын
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.
@zarakkhan5714 ай бұрын
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-yeole4 ай бұрын
what is happening?
@zarakkhan5714 ай бұрын
@@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
@SufficientDaikon4 ай бұрын
that's just the nature of being a programmer, encountering errors is the only constant
@ramakanttiwari8354 ай бұрын
My logout functionality is not working
@rohan-yeole4 ай бұрын
what is actual error you are getting?
@Soulsandpiro4 ай бұрын
Bhai shab 1st
@mvega87124 ай бұрын
Please create more tutorials like this one... pretty impressive and straightforward
@thorodinson81875 ай бұрын
Whats the username and password??
@rohan-yeole5 ай бұрын
the one you have created. through -- python manage.py createsuperuser
@thorodinson81875 ай бұрын
@@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👍
@cheddaberetta114 ай бұрын
@@rohan-yeole How would you get the registration page to automatically make that superuser for you?
@AdarshVK-g1q9 күн бұрын
@@rohan-yeoleplease tell how to create user
@bilalazhar91395 ай бұрын
Template doesn't exit at? Error any solution?
@rohan-yeole5 ай бұрын
how you have configured templates in settings?
@harshalshah10585 ай бұрын
static not working for me in link href line of base.html...how to resolve this?
@rohan-yeole5 ай бұрын
{% load static %} add this tag after head tag.
@harshalshah10585 ай бұрын
@@rohan-yeole already added..still giving error
@rohan-yeole5 ай бұрын
@@harshalshah1058 could share code in comment, base.html
@user-nd9zy8ej5z5 ай бұрын
Sir, whit what details you have logged in at 15:37 min
@meet.krunalrana4 ай бұрын
you have to crate user using Django commands
@rohan-yeole4 ай бұрын
use python manage.py createsuperuser to create user.
@AdarshVK-g1q9 күн бұрын
it's not working can you send correct code to create user
@user-nd9zy8ej5z5 ай бұрын
With what details you have logged in at 15:37
@thorodinson81875 ай бұрын
What did you put , mine is not working
@AdarshVK-g1q9 күн бұрын
yes for me too it's not working
@ajimccullum28375 ай бұрын
Sir ,I have one doubt, please give the you mail??
@rohan-yeole5 ай бұрын
please reach out.
@9GameCastGameTv6 ай бұрын
thx <3
@crisp97346 ай бұрын
bro remove signup warnings ofc no one like this warning
@rohan-yeole6 ай бұрын
Okay...but as learner person should know. Removing it may vary depending upon requirements.
@nandithass73266 ай бұрын
9:13 csrf is not working for me . showing templae does not exist
@rohan-yeole5 ай бұрын
Sid you restarted the server after creating an html file. Django server doesn't know if a new file is created!
@nandithass73266 ай бұрын
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-yeole6 ай бұрын
Template doesn’t exist ----> this may come if you havn't added or added but didn't restarted server. please check this.
@user-od9ip1nr6l6 ай бұрын
I m getting the webpage but csrf nd {{form}} is being displayed there with submit button. No username and password
@rohan-yeole6 ай бұрын
@@user-od9ip1nr6l can you discribe this "No username and password", is it label or something else?
@user-od9ip1nr6l6 ай бұрын
I meqn i am not getting those when i load my webpage
@studentcodehub96026 ай бұрын
I cannot open my signup page I have this Error: 'WSGIRequest' object has no attribute 'thod'
@rohan-yeole6 ай бұрын
When did you get this error?
@studentcodehub96026 ай бұрын
@@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?
@studentcodehub96026 ай бұрын
@@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})
@studentcodehub96026 ай бұрын
@@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})
@aniBunny123783 ай бұрын
Did you mean to write method*
@jeffblack63397 ай бұрын
'promo sm' ⭐
@siddusidh97057 ай бұрын
Thanks bro i succesfully done
@rohan-yeole7 ай бұрын
Great 👍Hope you subscribed to channel.
@codedjango7 ай бұрын
Thank you. More video tutorials on Django / DRF please
@rohan-yeole7 ай бұрын
More to come!
@rohan-yeole7 ай бұрын
Tutorial Link kzfaq.info/get/bejne/hdWadJqEtbzNdac.html
@DATA_MACHINE227 ай бұрын
Rohan username password button not showing up after changing signup.html file
@rohan-yeole7 ай бұрын
Can you specify at what part of time and what you have changed?
@DATA_MACHINE227 ай бұрын
@@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-yeole7 ай бұрын
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_MACHINE227 ай бұрын
@@rohan-yeolethanks signup is working now I didn’t created template/registration directory, now it works thanks
@nandithass73266 ай бұрын
@@DATA_MACHINE22 what?
@vaishnaviyeole16568 ай бұрын
Keep it up
@user-ps9ne8qz5c8 ай бұрын
When i run makemigrations its showing no module named rest framework
@rohan-yeole8 ай бұрын
Check Following - 1) you have activated virtual environment 2) you have installed rest_framwork by "pip install djangorestframework"
@user-ps9ne8qz5c8 ай бұрын
@@rohan-yeole these i should do in the bash console in python anywhere or in vscode ?...in vscode i already did install django rest framework
@rohan-yeole8 ай бұрын
im assuming you are deploying to a python-anywhere, so in the bash console in python anywhere
@user-ps9ne8qz5c8 ай бұрын
@@rohan-yeole oh..ok ..thank you ... I'll try again🙏
@user-ps9ne8qz5c8 ай бұрын
Now it's showing no module named corsheaders
@rohan-yeole8 ай бұрын
Code Link - djangoproject.in/how-to/html-project-create-solar-system-with-html-and-css/
@Unique9598 ай бұрын
Wow, Where can i get this code?
@rohan-yeole8 ай бұрын
Will add a link in the description with explanation.
@rohan-yeole8 ай бұрын
Added with explanation, you can use it now.
@Unique9598 ай бұрын
@@rohan-yeole Thank you🙏
@rohan-yeole8 ай бұрын
Hey Everyone, Give this video Like and subscribe to channel and make KZfaq BaBa happy for spreading the video. Im hiring for two roles, both are internship with paid amount. 🤑💰 for the channel and website. djangoproject.in. So if you are interested hit the DM or comment email-id in comment. 1. Web Developer ✍ 2. Video Editor 📹