Send mms or sms with personal mobile number

2023-09-14 Thread Toshar Saini
Is it possible to utilize a third-party API in Python for sending both MMS and SMS messages? I'm looking to avoid sending SMS messages using the purchase numbers provided by the third-party platform. Instead, I intend to send SMS and MMS using my personal phone numbers or a list of numbers that

Re: i got error 'type' object is not subscriptable

2022-11-21 Thread Toshar Saini
you don't show many to many field in list_display on admin panel On Thu, Nov 17, 2022 at 7:51 PM Sagar Singh wrote: > i created three model relation table > > onetoone() > manytoone(foreignkey) > manytomanyfield() > > i try to show data of manytpmany field on admin panel but they give error > >

Re: Page Integration

2022-11-21 Thread Toshar Saini
https://medium.com/django-rest/django-rest-framework-login-and-register-user-fd91cf6029d5 Just visit on and read out On Fri, Nov 11, 2022 at 10:48 AM Pooja Kumari wrote: > I tried many ways but nothing works. > Sorry this code is messed up but hope you get some idea what I'm trying to > do. >

Re: Averaging timestamp deltas with Django ORM

2022-09-08 Thread Toshar Saini
Something like qs.aggregate(delay=Avg(F(“approved_at”) - F(“created_at”)))[“delay”] try this On Thu, Sep 8, 2022 at 5:16 AM Thomas Lockhart wrote: > Something like qs.aggregate(delay=Avg(F(“approved_at”) - > F(“created_at”)))[“delay”] > > where I cribbed the technique from > https://stackoverflo

Re: Django Model related_name

2022-09-08 Thread Toshar Saini
when you want to fetch multiple objects from reverse relation(foriengkey) On Tue, Sep 6, 2022 at 3:51 PM Justin Kpakpa wrote: > Hello, pls under what circumstances do you need to defined a related_name > of a model field? > > -- > You received this message because you are subscribed to the Googl

Re: Checking API Results before saving

2022-09-08 Thread Toshar Saini
You can design a serializer for validate api data firstly you will pass data in serializer and after validate serializer you will save to model Pseducode : res = requests.post(url+some_endpoint, data) serializer = demoserializer(res.data) if serializer.is_valid(): model.objects.create(id =