Re: Django relationships

2021-06-25 Thread David Crandell
the way I manage my inventory system is keep all devices in one table and flag assigned or unassigned like you're trying to do. Each is then assigned to a locationID. On Thursday, June 24, 2021 at 4:24:22 PM UTC-5 murad...@gmail.com wrote: > Hi Django developers, > i am new in Python, > > i wan

Re: Django relationships

2021-06-25 Thread David Crandell
You'll have to define "in_use" as a models.BooleanField() I would have base class Devices and have Stock and Assign inherit from those On Thursday, June 24, 2021 at 4:24:22 PM UTC-5 murad...@gmail.com wrote: > Hi Django developers, > i am new in Python, > > i want to develop a simple app stock

Re: DRF | Django | Up votes | Down Votes

2021-06-25 Thread DJANGO DEVELOPER
Hi Mr Mike. Can you please share you knowledge here to help me? On Sat, Jun 26, 2021 at 6:54 AM Mike Dewhirst wrote: > HE lmbo pop l9m6oo9k > > > > -- > (Unsigned mail from my phone) > > > > Original message > From: DJANGO DEVELOPER > Date: 26/6/21 04:38 (GMT+10:00) > To: Djan

Re: DRF | Django | Up votes | Down Votes

2021-06-25 Thread Mike Dewhirst
HE lmbo pop l9m6oo9k--(Unsigned mail from my phone) Original message From: DJANGO DEVELOPER Date: 26/6/21 04:38 (GMT+10:00) To: Django users Subject: Re: DRF | Django | Up votes | Down Votes Ryan Thank you so much. I will give it try. and let you know about the resultsOn Fr

how does Django handle outbound requests?

2021-06-25 Thread Glenn Rutkowski
Can anyone point me in the right direction? We are using Django as an API Endpoint that accepts a request and then repackages it and sends it to an external service and waits for a response. I'm interested in the external call and how it is handled. If it times out or takes forever, what it t

Re: DRF | Django | Up votes | Down Votes

2021-06-25 Thread DJANGO DEVELOPER
Ryan Thank you so much. I will give it try. and let you know about the results On Fri, Jun 25, 2021 at 8:59 PM Ryan Nowakowski wrote: > On Thu, Jun 24, 2021 at 07:15:09AM -0700, DJANGO DEVELOPER wrote: > > Hi Django experts. > > I am building a Django, DRF based mobile app and I want to have > >

Re: Kindly help me with Django filer, urgent need.

2021-06-25 Thread Aritra Ray
Right, kindly heed to the problem as early as possible, The GitHub link is provided below. https://github.com/First-project-01/Django-ecommerce/issues/12 On Fri, 25 Jun 2021 at 19:34, Symaxx wrote: > This is easier to work with on GitHub, do you have a GitHub account? > > You can raise an issue

Re: DRF | Django | Up votes | Down Votes

2021-06-25 Thread Ryan Nowakowski
On Thu, Jun 24, 2021 at 07:15:09AM -0700, DJANGO DEVELOPER wrote: > Hi Django experts. > I am building a Django, DRF based mobile app and I want to have > functionality of up votes and down votes for posts that user will post. > So what I want to say here that, if an user upvotes a post then it sh

Re: Kindly help me with Django filer, urgent need.

2021-06-25 Thread Symaxx
This is easier to work with on GitHub, do you have a GitHub account? You can raise an issue then share the link here 🙂 On Fri, 25 Jun 2021, 3:04 PM Aritra Ray, wrote: > Hi, > This is my second request regarding the same issue. I've been building a > Django E-commerce website and I'm facing prob

Re: Partner

2021-06-25 Thread Symaxx
Hi there, I'm interested in helping with this you can email me at bukhosizimc...@gmail.com or bukh...@symaxx.com On Fri, Jun 25, 2021 at 12:33 PM Bukhosi Moyo wrote: > Hi there, I'm interested in helping with this you can email me at > bukhosizimc...@gmail.com or bukh...@symaxx.com > > On Wed, J

Re: i am trying to learn django from django documentation but i am getting an error message in the first part of the documentation

2021-06-25 Thread Symaxx
I started learning Django from the documentation but it was very hard for me and it took me a very long time to grasp the concept I suggest you try using books by w.s vincent http://wsvincent.com/books/ these are the best for me and them help you stay engaged On Wed, Jun 23, 2021 at 5:19 PM vatsa

Kindly help me with Django filer, urgent need.

2021-06-25 Thread Aritra Ray
Hi, This is my second request regarding the same issue. I've been building a Django E-commerce website and I'm facing problems filtering the product according to price. I used django-filter to filter category and size. Please suggest a solution for price in the following manner: Latest products, Lo

Re: DRF | Django | Up votes | Down Votes

2021-06-25 Thread DJANGO DEVELOPER
Chetan I got what you're saying. so how diff_votes will be updated? do have I to apply the same logic as Oba discussed above? and yes by calculating the up and down votes at the same time was that, if a user up votes my post and another user down votes my post then should be ranked accordingly. mea

Re: DRF | Django | Up votes | Down Votes

2021-06-25 Thread Chetan Ganji
You should have a field on Votes Model diff_vote as integerfield, which will be updated when a user upvote or downvote. WHY?? Calculating this value on list view will result in higher latency. So we can dump that calculation on creating on updating. What do you mean by calculate the up votes and

Re: DRF | Django | Up votes | Down Votes

2021-06-25 Thread DJANGO DEVELOPER
Oba Thank you so much. and let me try it. and one more thing that I want to ask that how can I calculate the up votes and down votes at the same time? as Facebook likes and dislikes do. can you guide me in this regard? On Fri, Jun 25, 2021 at 11:15 AM oba stephen wrote: > Hi, > > One way would b