Questions tagged as 'python-3.x'

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 / 15:31
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 / 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 / 05:35
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 / 10:42
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 / 21:15
0
answers

generate pdf with Django

I am using a library called weasyPrint to generate a PDF with an HTML template and a CSS. My problem is that it does not load {% load static %} and I can not load the images that carry that pdf. It also does not load {% load bootstr...
asked by 24.04.2018 / 10:08
0
answers

How to create a 32-bit exe?

Hi, I have a problem and that is that I have a program which will pass it to exe using cx_freeze, but the exe is 64 bits and I want it to be 32 bits. How can I get it?     
asked by 19.04.2018 / 21:21
0
answers

How to check request.data variables? DRF

I am modifying an API service in Django Rest Framework and I have an error to check if there is a field in the JSON sent by the client. I have a Comments ViewSet that can be associated to a product or a look, so, in the create() of the...
asked by 16.04.2018 / 10:13
1
answer

I can not get data from the database in Django

I have an error that has been happening to me for two days, which I do not understand what it may be, is when I try to obtain the information from the database with the employee model, the code is as follows: from django.shortcuts import rende...
asked by 11.04.2018 / 21:25
0
answers

Handling pdf files

Greetings to all (as) I need to make a program in python that allows to see a .pdf file that is delivered in a memory, but that in turn does not allow it to be copied, the truth is I'm lost on the most appropriate library to do this. I do not kn...
asked by 05.04.2018 / 17:09