▶️ Watch Entire Django Blog Playlist ✅ Subscribe To My KZbin Channel: bit.ly/3bWN6wj bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
@teekumar50563 жыл бұрын
you are the best teacher out there for coding! by far (and by far, I'm talking light years)
@Codemycom3 жыл бұрын
Thank you! I appreciate that!
@pikachu-n4u3 жыл бұрын
One of the most underrated Coding KZbin Channels!!
@Codemycom3 жыл бұрын
Thanks!
@vatsalbansal1353 жыл бұрын
Awesome Tutorial also no need to add those extra fields class EditProfileForm(UserChangeForm): password = None class Meta: model = User fields = ["username", "email", "first_name", "last_name"] widgets = { "username": forms.TextInput(attrs={"class": "form-control"}), "first_name": forms.TextInput(attrs={"class": "form-control"}), "last_name": forms.TextInput(attrs={"class": "form-control"}), "email": forms.TextInput(attrs={"class": "form-control"}), } the above code should work fine as well
@spreadhysteria36504 жыл бұрын
Amazing, Ive been on this channel non stop learning.
@Codemycom4 жыл бұрын
Glad you like it!
@sauravbhusal68364 жыл бұрын
why this channel is so underrated damn your viseos are so awesome hope this chennel grow really soon .
@Codemycom4 жыл бұрын
I hope so too! Tell your friends ;-)
@shawnbeans73894 жыл бұрын
Good Job
@Codemycom4 жыл бұрын
thanks
@zeek_zone4 жыл бұрын
Can't we just specify the fields in the meta class without listing them as attributs for the update thing?
@chetty12123 жыл бұрын
amazing content thanks so much sir
@Codemycom3 жыл бұрын
Thanks
@mtrkhan5664 жыл бұрын
Awesome as always......
@Codemycom4 жыл бұрын
Thank you!
@edward4523 жыл бұрын
I cannot uncheck box: is_superuser, is_staff, is_active to update profile. please, someone tell me why?
@gamerstrim4 жыл бұрын
You teach very well :)
@Codemycom4 жыл бұрын
Thank you! 😃
@nikhilbiyani834211 ай бұрын
Great playlist ! I can't quite figure out why the browser url is redirected to localhost//password/ on clicking the password form instead of localhost/members/password/. Is there any way to fix this?
@Codemycom11 ай бұрын
either your urls.py, your views.py, or your form on the html page is wrong.
@nikhilbiyani834211 ай бұрын
@@Codemycom I performed the actions as shown in this video and the next one but the issue still persists. I couldn't really find a reason on why it would take the ID of the user into the URL.
@Codemycom11 ай бұрын
You made an error along the way somewhere...@@nikhilbiyani8342
@spreadhysteria36504 жыл бұрын
Can you make an in put in the date where you choose in a calendar. instead of manually writing the date an not knowing the date format.
@Codemycom4 жыл бұрын
sure
@zoljargalenkhtaivan96613 жыл бұрын
Can you tell me the format of code? Your codes look so colorful. And I use VSCode
@Codemycom3 жыл бұрын
I use sublime text. it's default
@nikitabajracharya24313 жыл бұрын
the reset password button doesnot show , when i checked the view source, its says "" . what should i do now coz i cannot edit the source code.
@Codemycom3 жыл бұрын
You can always edit your own code. What did you do differently from the video?
@ksedos25914 жыл бұрын
Are you showing your video tutorials on the Linux program?
@Codemycom4 жыл бұрын
No, I use Windows.
@ronaldyiu5563 жыл бұрын
Hi, I like this Django Blog series so much, and I learned a lots about Django from scratch. Just one thing would like to share with other readers here that in your Edit form, the is_superuser and is_staff have been specified as forms.CharField. As a result, when I tried to edit a non-admin user, the form would not allow me to click the update button unless I checked the superuser checkbox. To workaround this, I changed the code to is_superuser = forms.BooleanField(required=False, widget=forms.CheckboxInput(attrs={'class':'form-check'})) And just one more thing, is there anyway to hide the "Raw password... thing, and click this form" line? The workaround I did is put this extra line, not sure if any other better way. password = forms.CharField(widget=forms.TextInput(attrs={'class':'form-control', 'type':'hidden'})) Just like other mentioned, the presentation style in this channel is super clear and very helpful. Thanks a lots.
@pikachu-n4u3 жыл бұрын
How can we create to delete the user account
@Codemycom3 жыл бұрын
Pretty sure I cover that in the playlist
@apurbadebnath43423 жыл бұрын
Checkbox not showing
@Codemycom3 жыл бұрын
Check your code for errors
@shezikhan59344 жыл бұрын
Sir how to add follow an account feature please...
@Codemycom4 жыл бұрын
Might look at that in the future
@bashbukari10894 жыл бұрын
Great one
@Codemycom4 жыл бұрын
Thanks!
@ironspeed124 жыл бұрын
To stop the 'Password:' from showing up in the edit form, add the following class attribute to EditProfileForm: password = None
@adelbordbari94164 жыл бұрын
this is really bad advice. you better remove `"password"` of of `fields`.
@ironspeed124 жыл бұрын
@@adelbordbari9416 I understand what you mean, I should have been a little clearer about what I meant by 'Password:'. I was referring to the label shown on the form. Excluding 'password' from the `fields` list just prevents the password hash from rendering onto the form. Even if you exclude it, the "Password:" label will still appear along with some helper text. Here's an explanation as to what is happening: EditProfileForm inherits from UserChangeForm. UserChangeForm has the password attribute defined as ReadOnlyPasswordHashField(label=_("Password"), help_text=...). You can see this in the UserChangeForm class in the Django source code on Github: django > contrib > auth > forms The keyword argument label is what gets rendered onto the form. You can change the text in the label keyword argument to whatever you like to test this. Just copy and paste the source code for the password attribute into your class and import all the necessary modules. (If you do this, make note of the underscore in _("Password"). Check the imports section of 'django > contrib > auth > forms' to see what it means.) The only ways I could figure out how to have that 'Password:' label not show is to override the password attribute in the form that you are creating and set it to None, or just create a form without inheriting UserChangeForm and use form.ModelForm to create the EditProfileForm.
@adelbordbari94164 жыл бұрын
@@ironspeed12 you also can do `self.fields['MYFIELD'].label = False`