Skip to main content

An Arches application extension that provides location-based functionality and enhancements for Arches-based projects. Designed for easy integration with Historic England's Arches projects.

Project description

arches-he-location-extensions

An Arches application extension that provides location-based functionality and enhancements for Arches-based projects. Designed for easy integration with Arches projects (Historic England context).

Requirements

Contents Overview

This Arches application contains extensions that provide location management and location-related functionality for Arches-based heritage inventory systems.

Installing for Development

For development purposes, you can treat this app as a standard Arches project. Either use the instructions for developing an Arches project or use the arches-containers configuration included in this repository.

Standard Development Setup

pip install -e '/path/to/arches_he_location_extensions[dev]'

This installs the app in editable mode, allowing you to make changes and see them reflected immediately without needing to reinstall.

Development Using arches-containers

This repository includes an arches-containers project configuration (requires version 1.1.0 or above), so you can import, activate, and start the system as follows:

  1. Ensure Docker is installed and running.

  2. Navigate to your workspace directory e.g. ~/workspaces/ahle_workspace

  3. Clone this repository if you haven't already.

  4. Import the arches-container project configuration:

    act import -p arches_he_location_extensions
    
  5. Activate the project:

    act activate -p arches_he_location_extensions
    
  6. Start the system:

    act up
    
  7. Once setup and webpack builds are complete, open a browser and navigate to http://localhost:8002 or use act view in a terminal to open the project in your default browser.

For more details, see the arches-containers documentation.

Using This App in Your Arches Project

Follow these steps to add arches-he-location-extensions to your Arches project:

1. Add to your_project/pyproject.toml

Add the following to your pyproject.toml dependencies (in the [project] section):

dependencies = [
    "arches==7.6.22",
    "arches-he-location-extensions @ git+https://github.com/HistoricEngland/arches-he-location-extensions.git@main",
]

2. Update your_project/your_project/settings.py

Add to INSTALLED_APPS and ARCHES_APPLICATIONS:

INSTALLED_APPS = (
    ...
    "your_project",
    "arches_he_location_extensions",
)

ARCHES_APPLICATIONS = ("arches_he_location_extensions",)

3. Update your_project/your_project/urls.py

Include the app's URLs (add project URLs before this):

urlpatterns = [
    # ... your project urls ...
    path("", include("arches_he_location_extensions.urls")),
]

4. Run Database Migrations

Run the following command to apply any database migrations required by this app:

# If using arches-containers, run this in the application container
python manage.py migrate

5. Install and Build Front-End Dependencies

From the directory containing your your_project/package.json:

# If using arches-containers, run this in the application container or restart webpack
npm install
npm run build_development

6. Start Your Arches Project

python manage.py runserver

For more information on deploying your Arches project, see the Arches Deployment Guide.

License

This project is licensed under the GNU AGPLv3. See the LICENSE file for details.

Additional Links

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

arches_he_location_extensions-1.0.0rc1.tar.gz (229.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file arches_he_location_extensions-1.0.0rc1.tar.gz.

File metadata

File hashes

Hashes for arches_he_location_extensions-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 3fe206941b6087bb40b656a6278cc5c19846f4b3886d8cf7366848f42832a99b
MD5 4260d8b59edb74bd59af98ff427ed649
BLAKE2b-256 183e8c51a6bb2cbd67a166a05823a6d4dae087387be4a8b9829eb0cfb51e422d

See more details on using hashes here.

File details

Details for the file arches_he_location_extensions-1.0.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for arches_he_location_extensions-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c03475a17b2bef85855c90c79dfc7dedf8cb30878546e85f04acf1d85673d4a
MD5 0b0bc72e6b4bd96ae2b1d197147a88c2
BLAKE2b-256 51b7e1d55fb1f2895eed5ad017e326af563eaec9d63c4c091871c2386667d1ab

See more details on using hashes here.

Supported by

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