Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/platypus-creation/django-communes
List of french communes with postal code, insee_code, population and latitude and longitude as a PointField
https://github.com/platypus-creation/django-communes
Last synced: 3 months ago
JSON representation
List of french communes with postal code, insee_code, population and latitude and longitude as a PointField
- Host: GitHub
- URL: https://github.com/platypus-creation/django-communes
- Owner: platypus-creation
- License: other
- Created: 2011-07-23T09:10:54.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-08-08T07:30:29.000Z (over 13 years ago)
- Last Synced: 2024-07-15T15:39:45.714Z (5 months ago)
- Language: Python
- Size: 6 MB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Django-Communes
===============List of all the French cities with name, population, insee_code, postal code, latitude and longitude as a PointField
Installation
------------pip install git+git://github.com/platypus-creation/django-communes.git
or:
git clone git://github.com/platypus-creation/django-communes.git
cd django-communes
python setup.py installAdd `communes` to your INSTALLED_APPS
INSTALLED_APPS = (
...
'communes',
)Create the database table
python manage.py syncdbor if you are using South (you should)
python manage.py migrate communes
Then load the datas
python manage loaddata communes.json
You are done
Usage
-----You should find your best way to use those datas. At least it should provide an easy way to suggest city from a postal code.
Greetings
---------All the datas were taken from http://www.galichon.com/codesgeo/
We wanted to thanks Jerome Galichon for creating those files.