I have these two models, Invoice representing an invoice e Item that represents the items on the invoice.
from django.db import models
# Create your models here.
class Invoice(models.Model):
vendor = models.CharField(max_len...
This is my billing table
db.define_table('facturacion',
Field('numero_comprobante', 'string'),
Field('numero_cotizacion', 'reference cotizaciones'),
Field('cliente', 'reference clientes'),...
I have these models:
class Direccion(models.Model):
pais = models.CharField(max_length=30)
estado = models.CharField(max_length=30)
municipio = models.CharField(max_length=30)
ciudad = models.CharField(max_length=40, null=True,...
I wish I could call any version of Python that I installed on the Windows terminal (I have 2.7, 3.6 and 3.7). I would like to call you with python , python36 and python37 or in any other way if you have more relevant ideas. H...
One question; Why do I do this in interactive mode from python and from "spyder / ninja" does not work?
Python
»> from numpy import *
»> a = array([10,20,30,40])
»> append(a,50)
array([10, 20, 30, 40, 50])
»>
Spy...
First of all, I apologize for the title of the question, which is not clarifying.
I have a list with the names of several files in a folder, of the type: file1_A1, file1_A2, file2_A1, file2_A2, ...
How can I create two lists from this list...
I would like to know if there is a way to make a file saved in memory without having to write it to disk. for example:
imagen = wx.Bitmap('imagen.png', wx.BITMAP_TYPE_ANY)
Now I want to take the image data and save it in memory, wx.Bitmap h...
How can I calculate the time difference between a client's actions?
I want to calculate all the elapsed time of the users until it passes to the next user. example .... from user 1 to two it was 2 days 4 hours, 5 seconds.
This is the dataf...
I am trying to center the texts of an item of QTableWidget for which I occupy the following:
self.tabla.insertRow(self.tabla.rowCount())
self.tabla.setItem(self.tabla.rowCount()-1,0,QTableWidgetItem(_id).setTextAlignment(QtCore.Qt.Align...