Django Inspire EU
This package is the django implementation from the themes of the infrastructure for spatial information in Europe (INSPIRE)
Documentation
The full documentation is at https://django-inspire-eu.readthedocs.io.
Quickstart
-
Install Django Inspire EU:
-
Stable version, preferably within a virtual environment:
$ mkvirtualenv django-inspire-eu $ pip install django-inspire-eu -
Development version:
$ pip install -e git+https://github.com/xusy2k/django-inspire-eu.git@master#egg=django-inspire_eu
-
-
Add it to your INSTALLED_APPS:
INSTALLED_APPS = ( ... "inspire_eu.apps.InspireEuConfig", ... ) -
Customize settings:
- INSPIRE_EU_THEMES
- INSPIRE_EU_DEFAULT_SRID
- INSPIRE_EU_BASE_MODEL
- MIGRATION_MODULES: Very important if you want avoid problems with migrations files
-
Make and execute migrations:
python manage.py makemigrations python manage.py migrate
-
Populate base models:
This django command fetch values from https://inspire.ec.europa.eu. In particular: Status: (valid, invalid, retired), Theme, Application Schema, Code List and For each Code List key, fetch all its Code List Values
python manage.py load_initial_inspire [-l <language>] # Default: en
-
Add Django Inspire EU's URL patterns:
from inspire_eu import urls as inspire_eu_urls urlpatterns = [ ... url(r"^", include(inspire_eu_urls)), ... ]
Working example
Follow steps at django-example directory
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox
Development commands
pip install -r requirements_dev.txt
invoke -l
Credits
Tools used in rendering this package:
History
0.2.4 (2024-07-04)
- Made optional
python-slugifyandfeedparser - Fixed documentation's build
- Upgrade of
django-example - Fixed old
OSMGeoAdminfor Django 4.0 and newer
0.2.3 (2024-07-03)
- Checked
ugettextandgettextfor compatibility with Django 4.0 and upper - python-slugify optional, using django slugify as fallback
- Set django.db.models.BigAutoField
0.2.2 (2021-06-01)
- Fixed related_name and related_query_name at AbstractOfficialArea model
- Updated python-slugify according its documentation
0.2.1 (2021-03-19)
- Added BaseInspireEUModel at CadastralZoning and CadastralParcel
- Typo fixed AbstractCadastralParcel.national_cadastal_reference to AbstractCadastralParcel.national_cadastral_reference
0.2.0 (2021-02-26)
- First release on PyPI.
0.1.0 (2021-02-07)
- First release on GitHub.
Metadata
Release files for django-inspire-eu 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_inspire_eu-0.2.4.tar.gz | 36.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_inspire_eu-0.2.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 80.6 kB
Release files / django_inspire_eu-0.2.4.tar.gz
| Download URL | django_inspire_eu-0.2.4.tar.gz |
|---|---|
| Size | 36.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06036e8522858cfa08411ff9eddf513e05622ea9e1f9c35a4a7be9667b4c9739
|
|
BLAKE2b-256 checksum How to use checksums |
afc10af0938781834d241ed8fc9aac7d319497afc0b366bf7875fa2fbfe7350f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / django_inspire_eu-0.2.4-py2.py3-none-any.whl
| Download URL | django_inspire_eu-0.2.4-py2.py3-none-any.whl |
|---|---|
| Size | 43.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
346ed4398c5f606cc8326e880ae1e4bd6e4f382f89d737c631134db21813d019
|
|
BLAKE2b-256 checksum How to use checksums |
099d3371f372a9048719c43867e39d0af9127bb9b4e9aae220ca677c08e0d4b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|