Django bug release: 3.1.5

2021-01-04 Thread Carlton Gibson
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2021/jan/04/bugfix-releases/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an ema

Please help. ImportError with django 3.1

2021-01-04 Thread Gasar Iyali
Hi Please I need your help. I have just installed django and when I try to run django I get this error message and nothing comes up in my browser. This is the error message that I get in the command prompt !*<<<(env) C:\Users\Documents\Learn Python\django\my_django_work\my_django_work\urls.py",

Re: Please help. ImportError with django 3.1

2021-01-04 Thread Mr. X Offencer
why are you using *from hello.views import index* instead of *from . import views* On Mon, Jan 4, 2021 at 6:54 PM Gasar Iyali wrote: > Hi > Please I need your help. > I have just installed django and when I try to run django I get this error > message and nothing comes up in my browser. > This

Re: Please help. ImportError with django 3.1

2021-01-04 Thread Josh Raj
hello is ur app name if so from hello import views try this if not be clear what is hello,index On Mon, Jan 4, 2021 at 4:24 PM Gasar Iyali wrote: > Hi > Please I need your help. > I have just installed django and when I try to run django I get this error > message and nothing comes up in my brow

How to set daily Update limit on Django model

2021-01-04 Thread Shailesh Yadav
I'm new to Django. I have created one Django App where users can update their Shift Timing(Morning/Evening/General) and based on this Shift Timing I am taking real-time data from Django Model and running Linux script which will be evaluating

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

2021-01-04 Thread Ayser shuhaib
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. On Mon, 04 Jan 2021 at 23:01, jose angel encinas ramos < encinasj.an...@gmail.com> wrote: > Hi everyone, i'm a new in djan

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

2021-01-04 Thread jose angel encinas ramos
Ok, i understood, can you show me how to multiply 2 fields? really i can't to do that... i guess i in mental looping i try to do that in views.py: data = Articles.objects.all().annotate(result=F('coust_buy') * F('quantity' )).output_field=FloatField('result') and the result is this what to yo