Re: muliple queryset result

2021-01-15 Thread Naresh Jonnala
Hi, 'OR' operator kills expected logic. try removing 'or' operator. For best practice, prepare raw sql and execute,untill you get logic. then update django query set. On Saturday, January 9, 2021 at 6:31:33 PM UTC+5:30 soumenk...@gmail.com wrote: > Hi Folks, > > Actually I have one *Pr

Re: Django ORM annotate performance

2021-01-15 Thread Naresh Jonnala
Hi, print(qs.query) and share. On Wednesday, January 13, 2021 at 11:25:06 PM UTC+5:30 pawe...@gmail.com wrote: > Hi all, > > I wanted to cross post my question / problem in regards to Django's ORM > `annotate` performance. Not sure if I should post it here on or Django > developers mailing li

Re: Add variable value in render field in django template

2020-11-23 Thread Naresh Jonnala
Based on URL structure, find suitable template tag to move forwered. https://docs.djangoproject.com/en/3.1/ref/templates/builtins/#url On Friday, November 20, 2020 at 8:34:08 PM UTC+5:30 rajshre...@gmail.com wrote: > Hi Users, > I have a value in variable occurence counter and I want to pass th

Re: Multiple Media_Root

2020-11-23 Thread Naresh Jonnala
using upload_to option @ model field. https://docs.djangoproject.com/en/3.1/topics/http/file-uploads/#handling-uploaded-files-with-a-model same url, some other options are there. On Monday, November 23, 2020 at 12:35:44 AM UTC+5:30 techg...@gmail.com wrote: > Hello, > > I am developing an E-C

Re: How to save all fields in form in single row into the database.

2020-11-23 Thread Naresh Jonnala
For your reference: https://docs.djangoproject.com/en/3.1/ref/forms/api/#django.forms.Form.prefix On Monday, November 23, 2020 at 6:06:46 PM UTC+5:30 sali...@rohteksolutions.com wrote: > Hi, > > We are trying to save fields in html form into one row into a database. > > models.py > > class m

Re: Import csv file on django view

2020-07-25 Thread Naresh Jonnala
r = dialect.delimiter quotechar = dialect.quotechar skipinitialspace = dialect.skipinitialspace csv.DictReader(self.file_open, **dialect) Try this. - Naresh Jonnala Hindustan. On Saturday, July 25, 2020 at 8:03:44 AM UTC+5:30, Liu Zheng wrote: > > Yes. You are right. Pandas' defa