You
How many times the new project, but open the same
Patrick
Patrick
This is because incorrect migrations
You
With the model. Make Model Early with AbstractUser, I will
Vijay
Vijay
Patrick
Patrick
Vijay
Vijay
He is saying make a abstract model and pass that model as dependency to others model
You
With model.Model is not a problem
You
Patrick
Vijay
Always use related_field=parentclassname_currentclass_name
Vijay
It's easy to remember
You
You
Know what to do right
Vijay
Send me ur problem
You
If you want to send a photo
Vijay
Yes
Faizan
To run migrations you need to create super user
Faizan
Have you created superuser?
You
You
You
Vijay
I think I have resolved his issue
Vijay
He is trying to re-create User model
Vijay
That's why those were appearing
You
You
Thanks 🙏
Vijay
Great bro
Vijay
And don't mind about pratik
Vijay
Whatever he said about u
Vijay
Keep coding keep growing 🤙
Patrick
gadghimuradm
34. def save(self, *args, **kwargs):
35. ModelTechProcess.objects.filter(shoes_model=self).delete()
36. if self.type:
37. for tp in self.type.tech_processes.all():
38. ModelTechProcess.objects.create(tech_process=tp, shoes_model=self)
39.
40. if self.bonding_type:
41. for tp in self.bonding_type.tech_processes.all():
42. ModelTechProcess.objects.create(tech_process=tp, shoes_model=self)
43. super().save(args, kwargs)
Overridden the save() method of the ShoesModel. First, I delete all ModelTechProcess model entries that are associated with the persisted entry, and then I create new entries for the ModelTechProcess.
The problem is that the old ModelTechProcess records were never deleted, but new ones were simply added to the old ones.
Neeraj
I have created register_view in view.py and without logout and login code I am able to login and logout 🤔
Neeraj
Can't understand
Neeraj
Can anyone one explain please
R
All of a sudden I am getting module not found error while accessing admin panel or trying to login to my app in django
R
Analyst
I am looking for django, rest api videos
Sanjarbek
Maltapopoulos 🇲🇹
Hello, do you know how can I do to use subscriptions with graphene ? Thank you very much !
🎀 𝑀𝓇._𝒵𝒾𝒢 🎀
How can i fix django import error in my visual studios
Y
Hello
Someone's can I help me please?
I want to deploy my project on pythonanywhere, so I have do different configuration, but if I use project url to see, I have some message that say it wrong.
So when I go error log to see what's the problem, I have no Module named as error
Y
It indicade error is inside wsgi file
Y
I don't know exactly what is the problem.
Because I defined the name of folder where is settings.py file.
But it don't work
.
.
Y
Y
It works correctly
O'ktamjon
Has anyone worked with OneSignal? I want to send notifications with picture to mobile app
O'ktamjon
Binary
🙃 examples will be better... It's very vague
Let a user-detail table have foreign key relationship with default User table and in user detail there is a field of choice field from 1-10 so the user-detail can create at most 10 instance of same user but the same choice field should not repeat for same user
Vaibhav
Anonymous
Is url namespace (in project level) as same as app_name (in app level) ?
Faizan
Do anyone know how to make Progress Bar on django using celery
Mohamad
My friends, I have a list of users and I want to show something to whoever is selected. How do I do this?
WIPEDREAM
WIPEDREAM
You can just write a function that takes in what is to be displayed as a parameter
Then under where you're selecting the user you'll call the function.
How does this sound to you?
Mohamad
Binary
Binary
How can join 2 column to create 1 unique key
Arian
i wanted to save the deposits that are success and change their status to True , but i have problem to find its current id
Arian
obj = models.Deposit.objects.get(id=)
obj.status = True
obj.save()
Arian
its my code in CallBack(APIView) class
Arian
if bank_record.is_success:
obj = models.Deposit.objects.get(id=)
obj.status = True
obj.save()
Arian
i want to get current obj and change its status but how can i get it
Arian
id= ...
Muhammadali
hello
Doragonsureiyā
hello
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
sufiyan
hii team, i have two models customer and ride, i want to update the customer (ride_id) field whenever the ride is created with the the ride id, any suggestion or solution. here is my code https://linkode.org/#I1aRJOfvPG8XO8DP5AREg4
for an example if the ride is created by the customer it should update the ride_id field of customer with created ride id.
sufiyan
I'm able to create the ride but i'm not able to update the cusotmer field (ride_id) with created ride.id