Questions tagged as 'python'

1
answer

Convert Json to Dataframe

I have the following Json [{ "documentosVinculados": [ { "fechaCreacion": "2018-05-08T15:56:51-03:00", "fechavinculacionDefinitiva": "2018-05-08T15:56:51-03:00", "numeroDocumento": "PT-2018-21487012", "referencia"...
asked by 11.05.2018 / 13:31
1
answer

Terminal in a Python / Tkinter program. The text disappears below

I am doing my first program in tkinter and I want to incorporate the linux terminal, as for example it has the Atom editor. I have managed to incorporate it, but when executing an order the text disappears inside the frame and you can only see t...
asked by 29.04.2018 / 09:28
2
answers

How can I iterate the following data dictionary in Django

I have the following models in python: class ModuleType(models.Model): name = models.CharField(max_length=150, unique=True) icon = models.CharField(max_length=100, unique=True) state = models.IntegerField(choices=state_choices, def...
asked by 24.04.2018 / 21:56
1
answer

Embed windows or .cmd commands in a python script

I made a .cmd file that runs a specific windows program. But I wrote the full script in Python. How do I embed the .cmd or that code in python?     
asked by 25.04.2018 / 23:56
1
answer

portable applications

Very good day, I would like to know if it is possible to make portable applications that is to say that they run on a USB and do not have to be installed on a computer, using python and a database to store data is redundant, and googled a lot an...
asked by 28.04.2018 / 03:35
1
answer

Problems with nested for loops using chunks

I have a problem with the joint use of for loops and chunks. I have a list of 300 origins and another list with 300 destinations (30 in the example) and I want to contrast each of the origins with each of the destinations. To do this, first of a...
asked by 24.04.2018 / 11:47
0
answers

how to modify action form? Django

I have this form in a template: <form method='POST' action='{% url "proceso-compra" object.slug %}'> {% csrf_token %} <span>TALLA </span> <select name="talla" id='id_t...
asked by 30.04.2018 / 08:42
0
answers

Insert in a table from python

I have two scripts which I connect to the database and the second extracts information from the database called Timetable. The first function is called persistence which makes the connection and executes a query in the database and the second...
asked by 23.04.2018 / 19:18
1
answer

import multiple models in another Django 2.X model

I am trying to create a form for my project with Django 2.0, with Python 3.6.4 in Windows 10, but when using a reference of some models of another app it tells me that it does not exist or that it is not defined, in a similar question said that...
asked by 23.04.2018 / 19:15
0
answers

how ranks work in reportlab in the creation of a pdf in python

Could you explain to me how the ranges that are placed on the stythos work? table.setStyle([('VALIGN', (0, 0), (-1, -1), 'TOP'), ('LINEABOVE', (1, 0), (1, 0), 1, colors.black), ('LINEABOVE', (3, 0), (3,...
asked by 24.04.2018 / 17:12