Re: JSON file

2020-05-25 Thread Derek
using a json file , and that's the problem I am > facing , I want to create a json file in my views.py based on my columns > below "countDeliveries"and "Dates" > > class mail_item_count_deliveries_perDate(models.Model): >countDeliveries = models.IntegerFie

RE: JSON file

2020-05-22 Thread Vishesh Mangla
I ‘m not sure if that is a JSON file because a JSON file is nothing but a python dictionary like structure and that doesn’t seem to be that. Anyways you can see python’s building json module’s json.dumps() function. Sent from Mail for Windows 10 From: HJSent: 22 May 2020 23:18To: Django

JSON file

2020-05-22 Thread HJ
hello django users hope you are doing well I want to do a highchart using a json file , and that's the problem I am facing , I want to create a json file in my views.py based on my columns below "countDeliveries"and "Dates" class mail_item_count_deliveries_

Re: HTML form filled, proposes a download link for the data filled in a json file

2019-04-09 Thread Robin Riis
com>: > I am working on creating a website based on the django framework with > python. The aim is to have a simple HTML form that will build around where > the user fills in the form and when it is done can submit it. When > submitted, he will have a json file downloaded. > > After loo

HTML form filled, proposes a download link for the data filled in a json file

2019-04-08 Thread Bassem Boulfarkat
I am working on creating a website based on the django framework with python. The aim is to have a simple HTML form that will build around where the user fills in the form and when it is done can submit it. When submitted, he will have a json file downloaded. After looking around, I found

Re: Filling out a form using a json file

2016-12-13 Thread jochen . luig
ought there has to be a more elegant way to handle the JSON -> Form Object part than just writing a ``post`` method. > > On another note, there are several Models I want to work with in > > this way so it would be even better if I could select the model > > class accord

Re: Filling out a form using a json file

2016-12-12 Thread 'Abraham Varricatt' via Django users
ith in > this way so it would be even better if I could select the model > class according to the contents of the json file. > This sounds like a validation job to me. Just put in all the logic checks into the validate() method. Bear in mind that you are likely to receive bad input,

Filling out a form using a json file

2016-12-12 Thread jochen . luig
Hi, I have a json file describing an object that I want to import into my app. For that purpose, I want to upload it using a form field and fill a ModelForm so the contents can be checked and edited by a user before saving it to the database. This is what I'm currently doing: # in forms.py

How to read the json file of a dinamical way in relation to their size structure

2016-10-10 Thread Bernardo Garcia
I have the following JSON file named ProcessedMetrics.json which is necessary read for send their values to some template: { "paciente": { "id": 1234, "nombre": "Pablo Andrés Agudelo Marenco", "sesion": { "id":

Creating JSON file

2013-04-08 Thread Seth Gordon
You want to output a list of one dict per object, and you want that dict to contain another dict inside it. So you don’t need dict2. Instead f = file('report.json','a+') sys.stdout = f result = [] objects = game_objects.objects.all() for obj in objects: time =

Creating JSON file

2013-04-08 Thread Nagarajan Dharmar Sitha
saved = sys.stdout f = file('report.json','a+') sys.stdout = f result = [] objects = game_objects.objects.all() for obj in objects: dict2 ={} time = time_stamp.objects.filter(user_id = obj.user_id) obj_id = obj.object_id per =