I want to store (City, Country) pairs in my models as a field. Is GeoDjango an overkill for my use case?

27 views
Skip to first unread message

John Reese

unread,
Sep 17, 2020, 4:47:47 AM9/17/20
to django...@googlegroups.com
I want to store (City, Country) pairs in my models as a field. I want to do something like this (the location field).

Is GeoDjango an overkill for my use case? If yes, what do you suggest me to use?

Carles Pina i Estany

unread,
Sep 17, 2020, 4:49:41 PM9/17/20
to django...@googlegroups.com

Hi,

On Sep/17/2020, John Reese wrote:
> I want to store (City, Country) pairs in my models as a field. I want to do
> something like this <https://stackoverflow.com/jobs> (the location field).
>
> *Is GeoDjango an overkill for my use case? If yes, what do you suggest me
> to use?*

I've read your question in multiple places I think!

I would seriously consider just using:
https://django-autocomplete-light.readthedocs.io/en/master/

You would need to have in your Django app the cities and countries,
tweak the query from django-autocomplete-light, etc.

Cheers,

--
Carles Pina i Estany
https://carles.pina.cat
Reply all
Reply to author
Forward
0 new messages