1👍
Perhaps you could put it in the view which renders the search page.
asuuming you have a view function like search
you could:
-
get users radius
request.user.get_radius
-
search for places based on that radius
relevant_places = Places.get_all_places_in_radius
-
Render those places to a user
0👍
Based on what you are describing, I believe GeoDjango would be worth your time to look into: http://geodjango.org/
Especially if you want to enable radius based searching, most of the heavy lifting is already done by GeoDjango, you’ll just have to invest some time learning how to use it (which is a small fraction of the time you would have had to spend “reinventing the wheel”, so to speak)
0👍
I just decided to add the function to the view so that the information can be input directly into the model after a user enters it. Thanks for the help. I’ll probably wind up looking into geodjango.