Do you like this video??? Comment and tell me..... Complete Tutorial for BUILD DJANGO CRM FROM SCRATCH - th-cam.com/play/PLSPMgrv4IuJ4WLURdlzKNx4sgsyqW8d5q.html
If i have a custom user model i have to create a field for the user model to hold the relationship? i have han error: instance.profile.save() AttributeError: 'UserAccount' object has no attribute 'profile' ty for your time
hi there, i seem to get the error: OperationalError at /admin/login/ no such table: userprofile_profile after trying to login using superuser. what could have been wrong?
I had logged out of the admin console before creating userprofile inside apps folder. After I created userprofile and wrote the snipper inside model.py that you showed in the video, I tried to login to the admin console but got the error "Related object does not exist". I removed apps.userprofile from LOCAL_APPS in settings.py, restarted the server and launched admin console. This time I was able to login without any error. Now I added apps.userprofile to LOCAL_APPS again, but this time I did not log out from admin console like I did earlier. I refreshed the page and was able to see the userprofile table inside the admin console this time. I did not understand this issue. If I am not logged in to the admin console, and after setting up userprofile inside the apps folder, I launch the server and go to admin console, why won't it let me log in with admin credentials and give "Related object does not exist" error?
Hello sir.. watched Ur playlist and got the contents I was searching for.. Really you did a great job making these videos which are very much useful...but I had a doubt on the admin page we can see the "Django administration " I wanted to ask is can we change the name Django administration to some other name and if we can then can you please tell how it is possible..plzz do reply..
Professional Cipher I create a class called "Product" and its attributes (name, quantity, price) can I make my attribute (quantity) be added to another class?
Hello, really great video, I have just used it to create extended user by myself. I have one question. How to use it with drf and serialization? I want to send POST request to create new user and fill the Profile: { "username": "test", "email": "aa@aa.com", "password": "test123", "password1": "test123", "profile": { "user": "test", "profile_field": "123", } } Still have some errors like - "profile": { "user": [ "Incorrect type. Expected pk value, received str." ] } Do you know how to send user with profile by using one post request?
USE THIS IN YOUR PROFILE MODULE: def __str__(self): return f'{self.user.username} Profile' this code save profile with the name of user profile example : object profile(1) saves with admin profile
Django CRM Playlist - th-cam.com/play/PLSPMgrv4IuJ4WLURdlzKNx4sgsyqW8d5q.html
Django Tips Playlist - th-cam.com/play/PLSPMgrv4IuJ6jm66M2rSZM_qIakywFoIr.html
Django Rest Framework Playlist - th-cam.com/play/PLSPMgrv4IuJ4tPeMgDGx7XV-4VRrjzZ8t.html
Django Oscar Shopping Website Playlist - th-cam.com/play/PLSPMgrv4IuJ5tX9Sk7hjNrHsQRC3ppRtG.html
So wonderful bro
Do you like this video??? Comment and tell me.....
Complete Tutorial for BUILD DJANGO CRM FROM SCRATCH - th-cam.com/play/PLSPMgrv4IuJ4WLURdlzKNx4sgsyqW8d5q.html
If i have a custom user model i have to create a field for the user model to hold the relationship? i have han error: instance.profile.save()
AttributeError: 'UserAccount' object has no attribute 'profile'
ty for your time
the video misses the related_name in the one to one field but other than that great video ty very much
why have two methods? Couldn't the save method be called before the create method? and why save the user and not the profile?
Just added "instance.profile.save()" to the first @received and worked fine. Looks like you don't need 2 signals.
really thanks sir! i learing a lot!
great!
hi there, i seem to get the error: OperationalError at /admin/login/
no such table: userprofile_profile after trying to login using superuser. what could have been wrong?
I had logged out of the admin console before creating userprofile inside apps folder. After I created userprofile and wrote the snipper inside model.py that you showed in the video, I tried to login to the admin console but got the error "Related object does not exist". I removed apps.userprofile from LOCAL_APPS in settings.py, restarted the server and launched admin console. This time I was able to login without any error. Now I added apps.userprofile to LOCAL_APPS again, but this time I did not log out from admin console like I did earlier. I refreshed the page and was able to see the userprofile table inside the admin console this time.
I did not understand this issue. If I am not logged in to the admin console, and after setting up userprofile inside the apps folder, I launch the server and go to admin console, why won't it let me log in with admin credentials and give "Related object does not exist" error?
Hello sir.. watched Ur playlist and got the contents I was searching for.. Really you did a great job making these videos which are very much useful...but I had a doubt on the admin page we can see the "Django administration " I wanted to ask is can we change the name Django administration to some other name and if we can then can you please tell how it is possible..plzz do reply..
Can I do this If I am using AbstractUser?
after created user, I cannot see profile right away.
Hello friend, your videos have been very helpful to me. I have a problem with a code when creating a model, can you help me?
Ok
Professional Cipher I create a class called "Product" and its attributes (name, quantity, price) can I make my attribute (quantity) be added to another class?
Hello, really great video, I have just used it to create extended user by myself.
I have one question. How to use it with drf and serialization?
I want to send POST request to create new user and fill the Profile:
{
"username": "test",
"email": "aa@aa.com",
"password": "test123",
"password1": "test123",
"profile": {
"user": "test",
"profile_field": "123",
}
}
Still have some errors like -
"profile": {
"user": [
"Incorrect type. Expected pk value, received str."
]
}
Do you know how to send user with profile by using one post request?
hey. did you find the solution to this?
How i can contact you its important
professionalcipher@gmail.com
USE THIS IN YOUR PROFILE MODULE:
def __str__(self):
return f'{self.user.username} Profile'
this code save profile with the name of user profile example : object profile(1) saves with admin profile