How to model postal address in django ???

500 views
Skip to first unread message

Ariel Isaac Romero Cartaya

unread,
Mar 30, 2012, 12:54:58 PM3/30/12
to django...@googlegroups.com
Hi everybody, is there any model in Django to represent postal
address, I mean is there already models like Countries, provinces and
cities with theirs relations to make this, and how to model the others
attributes: streets, postal code, between streets and perhaps latitude
and longitude to use google maps ????

How hope you can help me.
Any help would be appreciated.

Regards,
Ariel

Mario Gudelj

unread,
Apr 1, 2012, 4:02:26 AM4/1/12
to django...@googlegroups.com
You can use django-countries for county names and codes -http://code.google.com/p/django-countries/ or https://bitbucket.org/smileychris/django-countries

There are probably more apps out there.

For geo-coding you can try http://geodjango.org/. It's awesome but it may be a bit hard to implement. If you find it a bit hard you can always use Google http://djangosnippets.org/snippets/2241/. Note that you only get 20000 free lat long lookups a day with google.

Cheers,

-m





--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


Ariel Isaac Romero Cartaya

unread,
Apr 2, 2012, 10:07:46 AM4/2/12
to django...@googlegroups.com
Thank you very much for your answer Mario.

Regards,

Reply all
Reply to author
Forward
0 new messages