complex math calculation from query set

2021-07-20 Thread mab.mo...@gmail.com
Hello, I am trying to perform a complex math calculation from a django query set. How can I pass the results to the template for display? Annotations won't work since the math is not a simple sum, diff or average. MODEL class TncData(models.Model): callsign = models.TextField(max_length=2

Re: complex math calculation from query set

2021-07-21 Thread mab.mo...@gmail.com
{{field.callsign}} > {{field.lat|floatformat:2}} N > {{field.lon|floatformat:2}} W > > *{{field.distance}}* > > > HTH! > > On Tuesday, 20 July 2021 at 22:25:04 UTC+2 mab.mo...@gmail.com wrote: > >> Hello, >> >> I am trying to perform

Re: complex math calculation from query set # SOLVED

2021-07-24 Thread mab.mo...@gmail.com
at:1}} miles {{row.bearing|floatformat:0}} deg {{row.dt_heard|date:"D m/d H:i"}} {% endfor %} On Wednesday, July 21, 2021 at 5:01:02 PM UTC-5 mab.mo...@gmail.com wrote: > Thanks Derek. I'll give it a try > > On Wednesday, July 21, 2021 at 8:55:08 AM UTC-5 Der

Cannot start Daphne / Looking for channels production deployment with daphne/nginx

2021-09-22 Thread mab.mo...@gmail.com
Hello, I am attempting to add asgi/channels to an existing django project/web app. I was originally able to get channels to work via python manage.py runserver I am trying to deploy the project in production but cannot cat Daphne to start. Error messages and relevant files below. Questi

Re: Cannot start Daphne / Looking for channels production deployment with daphne/nginx

2021-09-26 Thread mab.mo...@gmail.com
ain attribute on your asgi.py file. Try with daphne -b > 0.0.0.0 -p 8001 mabtest.asgi:application > > El miércoles, 22 de septiembre de 2021 a las 20:37:50 UTC, > mab.mo...@gmail.com escribió: > >> Hello, >> >> I am attempting to add asgi/channels to an existi