Optimising queries

2020-12-19 Thread shreeh...@gmail.com
Hey guys how can i optimize the below code ? https://del.dog/grorottefe.txt There's only 2 objects created for this model im using. Any help would be appreciated. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Ongoing project

2020-12-19 Thread Carlos Romero Martin
Hello Peter, I’m interested to join team. Carlos Romero Martin Le vendredi 18 décembre 2020, 17 h 49 min 30 s CET Sujayeendra G a écrit : > Hello Peter, > I’m interested to join team. -- -- You received thi

Re: Ongoing project

2020-12-19 Thread Nauman Khan gori
I am also interested. Pls include me also On Fri, Dec 18, 2020, 10:20 PM Sujayeendra G wrote: > Hello Peter, > I’m interested to join team. > > Sent from Sujay’s iPhone > > On 18-Dec-2020, at 7:56 PM, sakshi jain wrote: > >  > plz make what's up grp > > On Fri, Dec 18, 2020, 03:50 Onlyo wrote

Re: Django/python free Training

2020-12-19 Thread Madhuri Wanave
I am interested On Fri, Dec 18, 2020, 9:58 PM Varnan Thirugnanasambandan Interested. > > On Fri, Dec 18, 2020 at 7:56 PM Python Class > wrote: > >> Hi guys, >> >> I am manucho from Kenya and am good developer with django and python and >> i want to teach people what i know .I want to start a you

pass a parameter into sql raw string and execute django

2020-12-19 Thread Ronald Kamulegeya
I want to pass parameter in view and i execute the insert query as shown below. I have searched and failed to get a solution. Any hints. Here is the code. My attempt is shown but not correct. def post_payroll(request,p_id): p_id=2 with connection.cursor() as cursor: query = "in

Re: Django/python free Training

2020-12-19 Thread Ronak Mistry
Interested in this.. On Sat, 19 Dec 2020, 21:24 Madhuri Wanave, wrote: > I am interested > > On Fri, Dec 18, 2020, 9:58 PM Varnan Thirugnanasambandan < > varn...@gmail.com wrote: > >> Interested. >> >> On Fri, Dec 18, 2020 at 7:56 PM Python Class >> wrote: >> >>> Hi guys, >>> >>> I am manucho f

Re: Django/python free Training

2020-12-19 Thread ule...@gmail.com
i'm interested. Op vrijdag 18 december 2020 om 15:27:14 UTC+1 schreef rampage...@gmail.com: > Hi guys, > > I am manucho from Kenya and am good developer with django and python and i > want to teach people what i know .I want to start a youtube channel for > Django and python based tutorials ..I

Re: Django/python free Training

2020-12-19 Thread Parul.
Interested On Sat, Dec 19, 2020, 10:37 PM ule...@gmail.com wrote: > i'm interested. > > Op vrijdag 18 december 2020 om 15:27:14 UTC+1 schreef rampage...@gmail.com > : > >> Hi guys, >> >> I am manucho from Kenya and am good developer with django and python and >> i want to teach people what i kno

Re: Python Django Training

2020-12-19 Thread Oyedele Yusuff
Add me also On Fri, 18 Dec 2020 3:26 pm Rafael Alix, wrote: > Pls add me > > On Wednesday, December 16, 2020 at 12:10:52 PM UTC-5 ray.s...@gmail.com > wrote: > >> Pls add me >> >> On Wed, 16 Dec 2020, 10:26 pm Nagaraju Singothu, >> wrote: >> >>> I'm also interested sir, Plz add me I'm from hyde

Re: Ongoing project

2020-12-19 Thread Oyedele Yusuff
I'm interested On Thu, 17 Dec 2020 12:42 pm Peter Kirieny, wrote: > Hello team > I have a project in django > (developing an ecommerce website with some innovations) > > Using pycharm and python, am looking for a partner here > > Am a Kenyan, in Nairobi > > If interested please inbox for more in

Re: Django/python free Training

2020-12-19 Thread Oyedele Yusuff
I'm interested On Fri, 18 Dec 2020 3:26 pm Python Class, wrote: > Hi guys, > > I am manucho from Kenya and am good developer with django and python and i > want to teach people what i know .I want to start a youtube channel for > Django and python based tutorials ..If intrested you can message m

Re: Django/python free Training

2020-12-19 Thread Rg Lee
I am interested Oyedele Yusuff 于 2020年12月20日周日 07:53写道: > I'm interested > > On Fri, 18 Dec 2020 3:26 pm Python Class, > wrote: > >> Hi guys, >> >> I am manucho from Kenya and am good developer with django and python and >> i want to teach people what i know .I want to start a youtube channel f

Re: pass a parameter into sql raw string and execute django

2020-12-19 Thread Julio Cojom
Hello First, create a query.py , just for order. [image: image.png] and declare a function with the parameters you want to receive. Then, in your views.py [image: image.png] you need to import connection from django.db finally , you can iterate over the rows fetched with one for loop. [imag

Re: Django/python free Training

2020-12-19 Thread Noel Simela
Have you worked on project that handles file uploads and sharing like google drive,dropbox e.t.c? There are no tutorials on such projects anywhere. That could be your starting point. Many Thanks, On Fri, Dec 18, 2020 at 4:26 PM Python Class wrote: > Hi guys, > > I am manucho from Kenya and am g

django.db.utils.IntegrityError: null value in column "user_id" violates not-null constraint

2020-12-19 Thread Sai Maruthi
Hello everyone, I have created the following model in my Project. User = settings.AUTH_USER_MODEL Discount_Type=( ('$', '$'), ('%', '%'), ) *class Invoice(models.Model):* ticket = models.OneToOneField(Ticket, related_name='invoice', blank=True,null=True, on_delete=models.

Re: django.db.utils.IntegrityError: null value in column "user_id" violates not-null constraint

2020-12-19 Thread Sai Maruthi
This is the full error. Internal Server Error: /ticket/create Traceback (most recent call last): File "C:\Users\Sai Maruthi\.virtualenvs\lappy-FT-EdR8P\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) psycopg2.errors.NotNullViola

Re: hldp on my api

2020-12-19 Thread Desh Deepak
You have missed adding the Content-Type header in the headers section. Just set the Content-Type header to application/json and it should work. On Sun, 20 Dec 2020, 1:37 am ola neat, wrote: > halo guys, i'm working api that requires user to upload image and send > text as form input on the same

Re: django.db.utils.IntegrityError: null value in column "user_id" violates not-null constraint

2020-12-19 Thread Sai Maruthi
I got the answer from StackOverflow https://stackoverflow.com/a/65377458/13588941 On Sunday, 20 December 2020 at 09:39:43 UTC+5:30 Sai Maruthi wrote: > This is the full error. > > Internal Server Error: /ticket/create > Traceback (most recent call