Style Our Profile Page With Bootstrap - Django Blog #24

  Рет қаралды 15,821

Codemy.com

Codemy.com

Күн бұрын

Пікірлер: 49
@Codemycom
@Codemycom 4 жыл бұрын
▶️ 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
@teekumar5056
@teekumar5056 3 жыл бұрын
you are the best teacher out there for coding! by far (and by far, I'm talking light years)
@Codemycom
@Codemycom 3 жыл бұрын
Thank you! I appreciate that!
@pikachu-n4u
@pikachu-n4u 3 жыл бұрын
One of the most underrated Coding KZbin Channels!!
@Codemycom
@Codemycom 3 жыл бұрын
Thanks!
@vatsalbansal135
@vatsalbansal135 3 жыл бұрын
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
@spreadhysteria3650
@spreadhysteria3650 4 жыл бұрын
Amazing, Ive been on this channel non stop learning.
@Codemycom
@Codemycom 4 жыл бұрын
Glad you like it!
@sauravbhusal6836
@sauravbhusal6836 4 жыл бұрын
why this channel is so underrated damn your viseos are so awesome hope this chennel grow really soon .
@Codemycom
@Codemycom 4 жыл бұрын
I hope so too! Tell your friends ;-)
@shawnbeans7389
@shawnbeans7389 4 жыл бұрын
Good Job
@Codemycom
@Codemycom 4 жыл бұрын
thanks
@zeek_zone
@zeek_zone 4 жыл бұрын
Can't we just specify the fields in the meta class without listing them as attributs for the update thing?
@chetty1212
@chetty1212 3 жыл бұрын
amazing content thanks so much sir
@Codemycom
@Codemycom 3 жыл бұрын
Thanks
@mtrkhan566
@mtrkhan566 4 жыл бұрын
Awesome as always......
@Codemycom
@Codemycom 4 жыл бұрын
Thank you!
@edward452
@edward452 3 жыл бұрын
I cannot uncheck box: is_superuser, is_staff, is_active to update profile. please, someone tell me why?
@gamerstrim
@gamerstrim 4 жыл бұрын
You teach very well :)
@Codemycom
@Codemycom 4 жыл бұрын
Thank you! 😃
@nikhilbiyani8342
@nikhilbiyani8342 11 ай бұрын
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?
@Codemycom
@Codemycom 11 ай бұрын
either your urls.py, your views.py, or your form on the html page is wrong.
@nikhilbiyani8342
@nikhilbiyani8342 11 ай бұрын
@@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.
@Codemycom
@Codemycom 11 ай бұрын
You made an error along the way somewhere...@@nikhilbiyani8342
@spreadhysteria3650
@spreadhysteria3650 4 жыл бұрын
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.
@Codemycom
@Codemycom 4 жыл бұрын
sure
@zoljargalenkhtaivan9661
@zoljargalenkhtaivan9661 3 жыл бұрын
Can you tell me the format of code? Your codes look so colorful. And I use VSCode
@Codemycom
@Codemycom 3 жыл бұрын
I use sublime text. it's default
@nikitabajracharya2431
@nikitabajracharya2431 3 жыл бұрын
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.
@Codemycom
@Codemycom 3 жыл бұрын
You can always edit your own code. What did you do differently from the video?
@ksedos2591
@ksedos2591 4 жыл бұрын
Are you showing your video tutorials on the Linux program?
@Codemycom
@Codemycom 4 жыл бұрын
No, I use Windows.
@ronaldyiu556
@ronaldyiu556 3 жыл бұрын
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-n4u
@pikachu-n4u 3 жыл бұрын
How can we create to delete the user account
@Codemycom
@Codemycom 3 жыл бұрын
Pretty sure I cover that in the playlist
@apurbadebnath4342
@apurbadebnath4342 3 жыл бұрын
Checkbox not showing
@Codemycom
@Codemycom 3 жыл бұрын
Check your code for errors
@shezikhan5934
@shezikhan5934 4 жыл бұрын
Sir how to add follow an account feature please...
@Codemycom
@Codemycom 4 жыл бұрын
Might look at that in the future
@bashbukari1089
@bashbukari1089 4 жыл бұрын
Great one
@Codemycom
@Codemycom 4 жыл бұрын
Thanks!
@ironspeed12
@ironspeed12 4 жыл бұрын
To stop the 'Password:' from showing up in the edit form, add the following class attribute to EditProfileForm: password = None
@adelbordbari9416
@adelbordbari9416 4 жыл бұрын
this is really bad advice. you better remove `"password"` of of `fields`.
@ironspeed12
@ironspeed12 4 жыл бұрын
​@@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.
@adelbordbari9416
@adelbordbari9416 4 жыл бұрын
@@ironspeed12 you also can do `self.fields['MYFIELD'].label = False`
@ironspeed12
@ironspeed12 4 жыл бұрын
@@adelbordbari9416 where?
@mujassimjamal24
@mujassimjamal24 4 жыл бұрын
😁1st
@Codemycom
@Codemycom 4 жыл бұрын
Woohoo!
Change User Password Page - Django Blog #25
18:18
Codemy.com
Рет қаралды 39 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Top 10 Advanced CSS Responsive Design Concepts You Should Know
20:16
Web Dev Simplified
Рет қаралды 546 М.
Style Django Forms With Bootstrap - Django Blog #5
15:46
Codemy.com
Рет қаралды 128 М.
Style Our Blog With Bootstrap - Django Blog #3
19:51
Codemy.com
Рет қаралды 49 М.
How To Upload Images With Django - Django Blog #26
17:59
Codemy.com
Рет қаралды 79 М.
I Redesigned the ENTIRE YouTube UI from Scratch
19:10
Juxtopposed
Рет қаралды 923 М.
How To Add Blog Category Navbar Links - Django Blog #15
20:28
Codemy.com
Рет қаралды 23 М.