Will tell you the possible ways to tackle this. 1. You assign the user model with a city name so when you filter results for a user you also filter to match the city they're in. 2. You use the browser locate feature to get gps info (latitude, longitude) feed that to django through javascript and get results for the area... before this the location will be put into a city
You should consider that the second you have to deal with users who are not in any city or missing info. -- 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 post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fa4a222b-ab71-41d2-834a-2f0a62adb9fd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.