Hi Soumen,
On 17/02/2020 14.59, Soumen Khatua wrote:
Yeah, I'm trying to do it in your way but somehow it's not working in my
script.
Which way?
I didn't give you any way to do it, I gave you three ideas and I would
be very interested to hear what would work out best.
I definitely find t
the CSV file is loading inside the AutoComplete(class) constructor
On Mon, Feb 17, 2020 at 10:44 PM Soumen Khatua
wrote:
> The CSV file is in project folder.Could you send me any code
> snippet,Please?
>
> Thanks for your time.
>
>
>
> On Mon, Feb 17, 2020 at 10:39 PM maninder singh Kumar <
> ma
The CSV file is in project folder.Could you send me any code snippet,Please?
Thanks for your time.
On Mon, Feb 17, 2020 at 10:39 PM maninder singh Kumar <
maninder.s.ku...@gmail.com> wrote:
> Hi Soumen,
> Where is the Csv file loading ?
> You could try return redirect also if the problem is du
Hi Soumen,
Where is the Csv file loading ?
You could try return redirect also if the problem is due to continued
resubmission.
Sent from my iPad
> On 17-Feb-2020, at 7:14 PM, Kasper Laudrup wrote:
>
> Hi Soumen,
>
>> On 17/02/2020 14.31, Soumen Khatua wrote:
>> Hi Folks,
>> Actually I want to
Actually my requirement is different it's like If anyone call the this
class first time then entire script will be execute. Afterwards if any one
wants to POST or any request then the constructor should not be execute
only the specefied request will be execute. otherwise if the csv file will
load e
its possible if manipulation possible in CSV
On Mon, Feb 17, 2020 at 8:02 PM tribhuvan kishor <
tribhuvankishor...@gmail.com> wrote:
> add a unique field in csv and
>
>
>
>
>
>
> *class AutocompleteView(APIView):def __init__(self):self.keys
> = []with open("search_terms_conver
add a unique field in csv and
*class AutocompleteView(APIView):def __init__(self):self.keys =
[]with open("search_terms_converteds.csv",'r') as file:
reader = csv.reader(file)for row in reader:*
* if row.get("perticular unique id field").exist():*
Could you send me any code snippet or any link,Please?
Thank you for your response
On Mon, Feb 17, 2020 at 7:40 PM tribhuvan kishor <
tribhuvankishor...@gmail.com> wrote:
> unique field in CSV
>
> On Mon, Feb 17, 2020 at 7:40 PM tribhuvan kishor <
> tribhuvankishor...@gmail.com> wrote:
>
>> i
unique field in CSV
On Mon, Feb 17, 2020 at 7:40 PM tribhuvan kishor <
tribhuvankishor...@gmail.com> wrote:
> i faced the same problem while i was dealing with CSV file.
> i gave a unique file in csv to make a check on the particular entry. by
> this way, i avoided multiple entries in my database
i faced the same problem while i was dealing with CSV file.
i gave a unique file in csv to make a check on the particular entry. by
this way, i avoided multiple entries in my database
On Mon, Feb 17, 2020 at 7:30 PM Soumen Khatua
wrote:
> Yeah, I'm trying to do it in your way but somehow it's n
Yeah, I'm trying to do it in your way but somehow it's not working in my
script.
Thanks for your valuable time.
On Mon, Feb 17, 2020 at 7:27 PM Kasper Laudrup
wrote:
> Hi Soumen,
>
> On 17/02/2020 14.51, Soumen Khatua wrote:
> > Okay.
> > Is it possible to load the csv file one time do the POST
Hi Soumen,
On 17/02/2020 14.51, Soumen Khatua wrote:
Okay.
Is it possible to load the csv file one time do the POST or any request
multiple times without loading the same file.Of course If it is in same
class??
Yes, I just gave you some ideas on how that could be done.
Kind regards,
Kasp
Okay.
Is it possible to load the csv file one time do the POST or any request
multiple times without loading the same file.Of course If it is in same
class??
On Mon, Feb 17, 2020 at 7:14 PM Kasper Laudrup
wrote:
> Hi Soumen,
>
> On 17/02/2020 14.31, Soumen Khatua wrote:
> > Hi Folks,
> > Actual
Hi Soumen,
On 17/02/2020 14.31, Soumen Khatua wrote:
Hi Folks,
Actually I want to load the csv file for first time only afterwards I
don't want to load the csv files,but everytime when i'm calling the url
the same csv fie is loading for the same operation.How I can restrict it
for multiple lo
Hi Folks,
Actually I want to load the csv file for first time only afterwards I don't
want to load the csv files,but everytime when i'm calling the url the same
csv fie is loading for the same operation.How I can restrict it for
multiple loadings?
*Here is my code:*
*class Autocom
e in SomeModel.objects.all():
print e.pk
for e in SomeModel.objects.all():
print e.pk
the database will be hit three times
Sent from my Windows Phone
--
From: Venkatraman S
Sent: 3/28/2013 3:51 AM
To: django-users@googlegroups.com
Subject: No multiple calls
Interesting Observation: So, am passing a queryset to my template and based
on the way a field in the record 'starts-with', i am rendering the record
into different 'tables' in the view.
Something like:
{% for record in settings %}
{%if record.type|starts_with:"EMAIL_" %}
...show record det
17 matches
Mail list logo