django-address icon indicating copy to clipboard operation
django-address copied to clipboard

Admin does not query google

Open Leikaab opened this issue 2 years ago • 2 comments

Hi,

we are trying to use your address field to replace our current address model and add google functionality. Our app is a backend drf server When using the django admin to add addresses, we can not get any google functionality. Is this intended for forms only?

Leikaab avatar Oct 10 '21 22:10 Leikaab

Hi @Leikaab! Thanks for reaching out. You can indeed use a Google address widget in the Django Admin. Please take a look in the example site admin file: example_site/person/admin.py. You'll need to update the admin definition for any model on which you're using an AddressField to use the AddressWidget. Hope that helps!

furious-luke avatar Oct 11 '21 04:10 furious-luke

Defining your GOOGLE_API_KEY in settings is also important.

xjlin0 avatar Mar 01 '22 14:03 xjlin0