Skip to main content

Django implementation from the the themes of infrastructure for spatial information in Europe (INSPIRE)

Project description

Django Inspire EU

Django 2.X Documentation Status image See Build Status on Travis CI image Code style: black

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

  1. Install Django Inspire EU:

    • Stable version:

      At the command line:

      $ easy_install django-inspire-eu
      

      Or, if you have virtualenvwrapper installed:

      $ 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
      
  2. Add it to your INSTALLED_APPS:

    INSTALLED_APPS = (
        ...
        'inspire_eu.apps.InspireEuConfig',
        ...
    )
    
  3. Customize settings:

  4. Make and execute migrations:

    python manage.py makemigrations
    python manage.py migrate
    
  5. 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
    
  6. 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.0 (2021-02-26)

  • First release on PyPI.

0.1.0 (2021-02-07)

  • First release on GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-inspire-eu-0.2.0.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

django_inspire_eu-0.2.0-py2.py3-none-any.whl (41.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-inspire-eu-0.2.0.tar.gz.

File metadata

  • Download URL: django-inspire-eu-0.2.0.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.0

File hashes

Hashes for django-inspire-eu-0.2.0.tar.gz
Algorithm Hash digest
SHA256 30a3ec20c57b60cfeb2bcb65d3d0f5ff22c322ee5fc9014b6dd45d76d649dbc2
MD5 30e20162f076c7e03c44c5ef778af380
BLAKE2b-256 3aa22991757c4d1cc438b7df29552ac017ced4b343d45125a63ae3cda52b715b

See more details on using hashes here.

File details

Details for the file django_inspire_eu-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: django_inspire_eu-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 41.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.8

File hashes

Hashes for django_inspire_eu-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f5722b6a8e1a8ba2f004902e19e7c681515a9bf0729bbd3b62feec0fb521cb25
MD5 ba73a3c75349e9de43cc669326e95bd8
BLAKE2b-256 2cb52315fca53068792e2db299d997f2cc20ba6617eb59a5f9397dde2d23d1d2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page