Re: Perform a join in 5 tables or more than that USIN ORM

2022-01-30 Thread Sam Chaffy
Yes you can What’s your model look like ? On Sun, Jan 30, 2022 at 7:26 AM narendra...@gmail.com < narendrathapa...@gmail.com> wrote: > hello folks, > any django ex[ert here, I want to know if anybody can do multiple join > more than 5 tables at once using ORM > Prefetch,prefetch_related,select_

Re: Is there a function that returns common elements in multiple lists

2022-01-25 Thread Sam Chaffy
You can use sets On Tue, Jan 25, 2022 at 7:47 AM bnmng wrote: > Hello, > > Is there a built in function that compares two or more lists and returns > elements common to all? > > like this: > > def in_both( list_a, list_b ): > list_c=[] > for value in list_a: > if value in list_b: > list_c.append

Re: can Django replace PHP ?

2021-06-28 Thread Sam Chaffy
Django gives you a builtin admin panel for free. Enjoy On Mon, Jun 28, 2021 at 3:49 PM Boris Pérez wrote: > Hi friend...u can do everything u need in django...without use php... > Greetings > > > 2021-06-28 10:23 GMT-04:00, Luis Zárate : > > Hi, you can create several web applications with Djan

Re: Filtering fields in http response data from http request url ?

2021-05-31 Thread Sam Chaffy
Using django rest framework, create a serializer class and specify the right field you want to display at the end. Please check this link https://www.django-rest-framework.org/api-guide/serializers/ On Sun, May 30, 2021 at 10:03 PM Mottaz Hegaze wrote: > Using Django Rest Framework , you can

Re: unable Integrating Djongo 1.3.1 with django 2.2.10

2020-03-20 Thread Sam Chaffy
Install pymongo package by > pip install pymongo or, better practice make a virtual environment directory where all your dependencies will be installed. > python -m venv myvenv (assuming you name it myvenv) If you are in Windows activate virtual environment with: > cd in directory where