genuinely the best django videos I've been able to find. Love when you stop to explain the small stuff that you think people might have a hard time following. Great videos
Love when the author stop to explain the small stuff, like the if POST expression, where the error_text came from, ... Make the tutorial easy to follow.
getting long texts of [Your password can't be too similar to your other personal information.Your password must contain at least 8 characters.Your password can't be a commonly used password.Your password can't be entirely numeric.] after password field at 13:43.
Unfortunatly on this one got stuck, just trying to chek in on that log in form looks and i get error:TemplateSyntaxError at /register/ Invalid block tag on line 27: 'endblock', expected 'endblock' or 'endblock Content'. Did you forget to register or load this tag? {% endblock content %} had issues before but mainly was typo issues but this one just is not making sense, ran true all code all identical, I am lost!
Hey, I'm getting this weird error manager isn't available. Manager isn't available; 'auth.User' has been swapped for 'users.User' (user is the name of my app which is related to my users) and I have no idea what to do. I'm clueless. Any help
great videos man but I followed it to the T, and it creates the account, but throws the following error: 'AnonymousUser' object has no attribute '_meta'
@@arjunmurali1993 authenticate method is returning None, even the email and password are correct and I have mentioned this in settings.py also:AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', ) What is the reason? Why I am not able to authenticate?
this can be resolved by creating a template folder in account folder and then again creating an account folder in that template folder then add the register.html file in this account folder(the one which is newly created)
Hey Mitch. Great videos so far! Thanks so much! I would like users to have to enter in their email twice for validation, like the password1 and password2 fields. Can this be done on this form as well?
@@nazimfirdousali6952 yes I created another model and mapped it one to one with this model and then show forms from both these models while registering
I got the error in the end of this video. please help! The view account.views.registration_view didn't return an HttpResponse object. It returned None instead.
a dictionary of python , he put the key ('registration_form') to the (context dic.) with the (value form) , you can use context = {'registration_form': form} at the end of def , instead of using it from the begging, dive with the dictionaries of python it really helps
this is because the following part of the code in views.py username = form.cleaned_date['username'] password = form.cleaned_date['password1'] user = authenticate(username=username, password=password) login(request, user)
authenticate method is returning None even the email and password are correct and I have mentioned this in settings.py also:AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', ) What is the reason? Why I am not able to authenticate?
It creates the account, but throws the following error: 'AnonymousUser' object has no attribute '_meta' Thank you, your videos have been helping me a lot
@@ThePassportPapi delete or comment:- account = authenticate(email=email, password=raw_password) and write this :- account = form.save() le me know if it solves
genuinely the best django videos I've been able to find. Love when you stop to explain the small stuff that you think people might have a hard time following. Great videos
Love when the author stop to explain the small stuff, like the if POST expression, where the error_text came from, ... Make the tutorial easy to follow.
Mitch you're love! thumbs up for such a high quality videos :)
Do you need to specify the emailField at 1:40 if you include 'email' in the fields inside Meta?
No, he just add help_text
Best Video Tutorial I have ever got thanks a lot
getting long texts of [Your password can't be too similar to your other personal information.Your password must contain at least 8 characters.Your password can't be a commonly used password.Your password can't be entirely numeric.] after password field at 13:43.
Unfortunatly on this one got stuck, just trying to chek in on that log in form looks and i get error:TemplateSyntaxError at /register/
Invalid block tag on line 27: 'endblock', expected 'endblock' or 'endblock Content'. Did you forget to register or load this tag?
{% endblock content %}
had issues before but mainly was typo issues but this one just is not making sense, ran true all code all identical, I am lost!
Hey, I'm getting this weird error manager isn't available. Manager isn't available; 'auth.User' has been swapped for 'users.User'
(user is the name of my app which is related to my users) and I have no idea what to do. I'm clueless. Any help
did you solve
@@omergolcu4838 Yea I solved but I'm not doing Django anymore lol I'm studying a little bit about front end and css now
@@piyush6631 can you tell us how you solve it
I got the same problem Reply ASAP
did this dude really not share the solution?
Update for that, In my case I forgot to indent the "Meta" class in forms.py which caused this error
awesome video series. Thank you for teaching us for free!
But i have one problem. How and where is checked if passwordw1 and password2 are equal?
It is posible add style to password and password validation input?
can anybody answer my doubt how could the render statement work when it is outside the esle statement
great videos man but I followed it to the T, and it creates the account, but throws the following error:
'AnonymousUser' object has no attribute '_meta'
replace the account=authenticate line in views.py with this:
account = form.save()
@@arjunmurali1993 authenticate method is returning None, even the email and password are correct and I have mentioned this in settings.py also:AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
)
What is the reason? Why I am not able to authenticate?
Help text is not showing in the form. Can anyone help?
I got my mistake, I accidentally wrote error in place of field.help_text
also, how do I add a photo to be required during user registration?
If i want to remove username from the registration what i do?
i am getting 'TemplateDoesNotExist at /register/' error, couldn't find any solution for this,please help
this can be resolved by creating a template folder in account folder and then again creating an account folder in that template folder then add the register.html file in this account folder(the one which is newly created)
can you convert the registration_view function to a CLASS BASED VIEW? I'm really desperate on this one...
Could I change the language for example ,to spanish ,of all those help messages if I wanted?
Sure you can. You can change whole project language to spanish in settings.py file
how to add is staff upon registration
Hey Mitch. Great videos so far! Thanks so much! I would like users to have to enter in their email twice for validation, like the password1 and password2 fields. Can this be done on this form as well?
I cant add my own fields like mobile number in registration form using this way right??
You get solution or not because i am still facing this problem...
@@nazimfirdousali6952 yes I created another model and mapped it one to one with this model and then show forms from both these models while registering
@@aryankhandelwal37 Please email me on nazim.mandviwala98@gmail.com
@@aryankhandelwal37 I tried mapping it but keeps giving errors? mind sharing a screenshot of how you did it?
@@abdullahzd7074 Hey I don't even remember ki kis project m ye doubt aya tha mujhe
I got the error in the end of this video. please help! The view account.views.registration_view didn't return an HttpResponse object. It returned None instead.
compare your code with mine on github. You forgot something.
@@codingwithmitch looks the same word for word but stilll shows same error
What if error "no such table: account_account" afrer runserver?
makemigrations and migrate
context['registration_form'], I don't get this? Is there anyone who could explain that to me?
a dictionary of python , he put the key ('registration_form') to the (context dic.) with the (value form) , you can use context = {'registration_form': form} at the end of def , instead of using it from the begging, dive with the dictionaries of python it really helps
@@nooruldeenq.5037 thanks!
When ever i register the new account user automatically login. What is this matter?
this is because the following part of the code in views.py
username = form.cleaned_date['username']
password = form.cleaned_date['password1']
user = authenticate(username=username, password=password)
login(request, user)
authenticate method is returning None even the email and password are correct and I have mentioned this in settings.py also:AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
)
What is the reason? Why I am not able to authenticate?
i am getting CSRF verification failed error ,anyone help please
amazing.
It creates the account, but throws the following error:
'AnonymousUser' object has no attribute '_meta'
Thank you, your videos have been helping me a lot
did you solve that ??
i'm getting the same one shit
did u got solution because me and others also having same error at registration phasse
@@ThePassportPapi delete or comment:- account = authenticate(email=email, password=raw_password)
and write this :- account = form.save()
le me know if it solves
Thanks!
have you consider doing hacking tutorials? that would awesome
Duno how to hack
@@codingwithmitch okay
My data from the registration form is no being saved in the database, i checked the code, and i cant find any mistakes
how can i add fields like firstname and lastname to the registration form. Can anyone please help