django-cities
django-cities copied to clipboard
Countries and cities of the world for Django projects
## Checklist - [ ] I have verified that I am using a GIS-enabled database, such as PostGIS or Spatialite. - [ ] I have verified that that issue exists...
Why does the city property of the postal_code object return None or the city.postal_code.all() retruns an empty queryset.? I did --import=all. Did I miss anything on the setup?
Unwanted comma on line 609 results in code being set to a tuple rather than a string. https://github.com/coderholic/django-cities/blob/c811bbbe2b509d99d2ea025fa1e7106330a90e51/cities/management/commands/cities.py#L608-L609 A comma makes it a tuple (no need for parent, all it...
``` python a = b = Point(113.9192428, 22.4876533) a_y = radians(a.y) b_y = radians(b.y) delta_x = radians(a.x - b.x) cos_x = sin(a_y) * sin(b_y) + cos(a_y) * cos(b_y) * cos(delta_x)...
## Checklist - [x] I have verified that I am using a GIS-enabled database, such as PostGIS or Spatialite. - [x] I have verified that that issue exists against the...
## Checklist - [x] I have verified that I am using a GIS-enabled database, such as PostGIS or Spatialite. - [x] I have verified that that issue exists against the...
Fix for #165
Postal code mode has strange unique keys: https://github.com/coderholic/django-cities/blob/master/cities/models.py#L347 ```python @python_2_unicode_compatible class PostalCode(Place, SlugModel): # ... class Meta: unique_together = ( ('country', 'region', 'subregion', 'city', 'district', 'name', 'id', 'code'), ('country', 'region_name',...
I'm confused by the import configuration settings and general workflow. - Can I supply the files to be imported into the DB myself (by downloading manually and placing in the...
## Goals * Add a boundary field for all the models that might have boundaries; * Add a mechanism to import boundary/GIS data to the correct places; ## Considerations 1....