These are chat archives for django/django
group_byto solve your issue
queryset.annotate(grouping_hours_integer=Seconds(F('violation_time')) % 7200).group_by('grouping_hours_integer')
You could do something like I wrote above.
If you are not using
postgres, then you can look at the docs of https://github.com/hypertrack/django-pg-utils/blob/master/pg_utils/utils.py
Hi everyone, I'm having trouble setting up
cron jobs on aws beanstalk, my jobs can also run just visiting a url, for example mysite.com/backup will start the backup (however resulting in a timeout error).
I'm wondering if it would be the same to use a third party service which just sends a post request every night at an X hour to mysite.com/backup (I could use for example ifttt.com)
this would avoid me setting up cron jobs
would the result be the same? Is this really that bad as a solution? If so why? (apart of being dependant on ifttt)
[This is for an early stage project, if things grow well of course I'll move to a "real" good solution, but in theory it should work just fine no?