
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
django-francedata
Advanced tools
A Django app to provide a database structure, API and import scripts to manage French communes, intercommunalités, départements and régions, with their structure and data from Insee and the DGCL.
.. image:: https://badge.fury.io/py/django-francedata.svg :target: https://pypi.org/project/django-francedata/
.. image:: https://github.com/entrepreneur-interet-general/django-francedata/actions/workflows/django.yml/badge.svg :target: https://github.com/entrepreneur-interet-general/django-francedata/actions/workflows/django.yml
.. image:: https://github.com/entrepreneur-interet-general/django-francedata/actions/workflows/codeql-analysis.yml/badge.svg :target: https://github.com/entrepreneur-interet-general/django-francedata/actions/workflows/codeql-analysis.yml
Provides a database structure, API and import scripts to manage French communes, intercommunalités, départements and régions, with their structure and data from Insee and the DGCL.
This app was created as a part of Open Collectivités <https://github.com/entrepreneur-interet-general/opencollectivites>_.
Unaccent extension ##################
If the PostgreSQL user specified in the Django settings is not a superuser, connect to the postgres user and create the Unaccent extension manually::
psql
\c <dbname>
"CREATE EXTENSION IF NOT EXISTS unaccent;"
Quickstart ##########
Add "francedata" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ ... "django_json_widget", "simple_history", "francedata", ]
Run python manage.py migrate to create the francedata models.
Run the two initialization commands to get the communes, EPCIs, départements and régions structure::
python manage.py cog_import python manage.py banatic_import
Visit http://127.0.0.1:8000/admin/ to see the data.
Commands ########
cog_import:
regions, departements, communesbanatic_import:
cog_import was already run and that the communes level is passed before the epci level.communes, epciTable de correspondance code SIREN / Code Insee des communes from https://www.banatic.interieur.gouv.fr/V5/fichiers-en-telechargement/fichiers-telech.php ), by default it imports the latest available one)FAQs
A Django app to provide a database structure, API and import scripts to manage French communes, intercommunalités, départements and régions, with their structure and data from Insee and the DGCL.
We found that django-francedata demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.