Re: Problemas con Formato numerico en django

2014-04-04 Thread Hector Armando Vela Santos
Saludos Norma. Yo hice un paquete con las funciones que uso normalmente en el día a día. Puedes encontrarla aquí: https://github.com/vellonce/python_recipes De allí la función que te puede servir, es "moneyfmt" que es una función que le pasas un valor numérico y te regresa un string con el form

Re: Creating multiple objects at once

2013-09-30 Thread Hector Armando Vela Santos
well, you can always write the raw SQL querie... https://docs.djangoproject.com/en/1.4/topics/db/sql/ On Sunday, September 29, 2013 10:16:47 PM UTC-5, Lachlan Musicman wrote: > > Hola, > > I have a inventory system with Parts and Part types. Part Types are > Archetypes, parts are instances of Pa

Re: hi [django-users] How to do something after "return HttpResponse(html)"?

2013-06-25 Thread Hector Armando Vela Santos
You can use Celery for that, I've done something similar, just with a CSV instead of a XML, check this http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html once installed and configured, its as simple as: from celery import task if (the xml format is ERROR) == True:

Re: quantize result has too many digits for current context

2013-01-18 Thread Hector Armando Vela Santos
Are you sure that that's the only thing you are doing? have you done something before with the prices(preco_unit, valor_total)?? I had once this error but was because I was trying to save a decimal field wich exceeded the length of the integer part of my decimal field. On Thursday, January 17,

Re: django/celery - celery status: Error: No nodes replied within time constraint

2012-11-29 Thread Hector Armando Vela Santos
time constraint On Tuesday, November 27, 2012 5:57:38 AM UTC-6, Hector Armando Vela Santos wrote: > > I'm trying to deploy a simple example of celery in my production server, > I've followed the tutorial in the celery website about running celery as > daemon > http://do

django/celery - celery status: Error: No nodes replied within time constraint

2012-11-27 Thread Hector Armando Vela Santos
I'm trying to deploy a simple example of celery in my production server, I've followed the tutorial in the celery website about running celery as daemon http://docs.celeryproject.org/en/latest/tutorials/daemonizing.html#daemonizing, and I got the config file in*/etc/default/celeryd* * * 1 # Na