https://stackoverflow.com/questions/19703975/django-sort-by-distance/35896358#35896358
will point you in the right direction

On Wed, 24 Feb 2021 at 08:27, Salima Begum <salim...@rohteksolutions.com>
wrote:

> Hi all,
>
> 1. After posting an Ad it will display in the classifieds page. After user
> logged in user zip code and based on classifieds ad zip code distance we
> are showing in classifieds page.
> 2. Based on distance and added date of Ad we need to show a listing in the
> classifieds page.
> 3. within 40 miles first we need to show listings of Ads and then in that
> again within 40 miles based on the added date we need to show in
> classifieds page.
> 4. And next 80 miles and then in that added by date in the classifieds
> page.
>
> Example:-
> title                      logged       Adzip     distance      added_date
>
> Testing post Ad   80023       80027      10.5 mi
>  2021-01-2213:37:44.32801+05:30
>
>
> Can anyone help me to achieve this? Thank you
>
> Thanks
> ~Salima
>
> --
> 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
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMSz6bn%3D6wZ%2BAoLQOkM6Dxr7Bx4%2BvVKY79mq4JUvydcqOq8YDg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAMSz6bn%3D6wZ%2BAoLQOkM6Dxr7Bx4%2BvVKY79mq4JUvydcqOq8YDg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Best Regards,

Christian Ledermann

Newark-on-Trent - UK
Mobile : +44 7474997517

https://uk.linkedin.com/in/christianledermann
https://github.com/cleder/


<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

-- 
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 email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABCjzWpq%2BfsF9Q9KgW2iB0reMiQXj2mdAgkxOEdErw4VRu7aFQ%40mail.gmail.com.

Reply via email to