Re: multiplying two fields

2021-01-30 Thread Mai Elshiashi
This will work data = Articles.objects.all().annotate(result=ExpressionWrapper(F('cost_buy') * F('quantity') , output_field=FloatField())) now data is a queryset. so you can do something like this data[0].result data.values("result") -- You received this message because you are subscribed to the

Re: How can I host my django project on my pc for someone to see it outside my WIFI network

2020-12-23 Thread Mai Elshiashi
If you're looking for a tool to allow anyone to see your project running on localhost. There's a cool tool called Ngrok Which exposes your localhost to be public with a secure tunnel.Check it out. https://ngrok.com/ On Wed, Dec 23, 2020 at 11:36 PM Benny M wrote: > I’m going to second Kasper o