Re: How can I multiply 2 or more fields in django views or models

2021-01-04 Thread jose angel encinas ramos
and the result is this what to you think 😬 On Mon, Jan 4, 2021 at 2:06 PM Ayser shuhaib wrote: > Nothing wrong with the query, the problem is that you are trying to > multiply two values of a different type. > You can fix that by converting the smallInteger value to decimal. > >

multiplying two fields

2021-01-29 Thread jose angel encinas ramos
Guys gd evening I need help,really i don't kwnow how to do a multiply two fields, have a model called Articles. class Articles(models.Model): #models article Nuevo = 'Nuevo' Semi_nuevo = 'Semi_nuevo' Usado = 'Usado' Otros = 'Otros' STATE_ACTUAL = ( (Nuevo, 'Nuevo'), (Semi_nuevo,'Semi_nuevo'), (

Re: multiplying two fields

2021-01-29 Thread jose angel encinas ramos
gt; F('quantity')).output_field=FloatField('result'), >> >> contains a type for the field "cost_buy" (i.e. not "coust_by"). >> >> If that isn't it please give us the traceback. >> >> On Fri, Jan 29, 2021 at 8:50 PM jos

Try to save multiple files using a one to many fields django

2021-02-21 Thread jose angel encinas ramos
hello everyone, i working in my inventory django app, in this project i try to create a new area and in to each area has a posible to save multiples pdf. so, when i try to save pdf in some new area have this error in terminal ''' django.db.utils.IntegrityError: null value in column "microbusines

How to save a result of multiplication

2021-04-24 Thread jose angel encinas ramos
Hi everyone i build a web application in Django 3.1.7 and i try to do the next opeation(multiplication). in my models a have: class Articles(models.Model): quantity = models.PositiveIntegerField() cost_buy = models.DecimalField(max_digits=10, decimal_places=2) total_todo = models.Dec

tengo un problema a la hora de hacer deploying django app to heroku

2019-11-13 Thread jose angel encinas ramos
mas que nada el poblema que tengo es técnico , el detalle es que cuando escribo en la terminal git push heroku master me lanza el siguiente error y no entiendo cual es el error. (webapps) ➜ BuscadorTims git:(master) ✗ git push heroku master Counting objects: 221, done. Delta compression using u

Re: good day guys

2019-12-04 Thread jose angel encinas ramos
Buenas tardes, ya creaste un super usuario en django?, creo que te hace falta correr python manage.py makemigrations despues python manage.py migrate intenta eso El mié., 4 dic. 2019 a las 17:10, Tosin Ayoola () escribió: > halo guys, i'm working on a school management system that has multi user

Re: Django for beginers

2020-01-08 Thread jose angel encinas ramos
this is the documentation, is very useful https://docs.djangoproject.com/en/3.0/ https://www.valentinog.com/blog/drf/ El mié., 8 ene. 2020 a las 18:08, KULDEEP SHARMA (< onshadeeprmaald1...@gmail.com>) escribió: > How and where can we find the Django doc. And how can we llink Python with > our