planetarypraxis / smartforests

A tool to capture and narrate smart forests data, including fieldwork, interviews, social network analysis, maps and environmental data from instrumented forests.
Other
0 stars 0 forks source link

Smart Forests Atlas

A tool to capture and narrate smart forests data, including fieldwork, interviews, social network analysis, maps and environmental data from instrumented forests.

See the live site at https://atlas.smartforests.net

Development

Requirements

Process

Issues

Other Technical documentation

Build / deployment process

This repository has a development dockerfile (.devcontainer/Dockerfile) and a production one (./Dockerfile).

They both run .bin in ./.bin to configure their environments and install dependencies:

 Regenerating tag clouds and re-indexing logbooks

Producing tag clouds is a relatively computationally intensive operation, so we do it only occasionally with a Django management command.

python manage.py reindex_logbooks

This command:

You should run this command if you modify the save behaviour of models, or change the tag cloud generation algorithm.

 Background tasks to regenerate tag clouds

Tag clouds are also generated with a background task using django-background-tasks. This task is run 15 seconds after a tag is saved.

Reindexing all tags takes around 30 minutes.

Translations

  1. To (re)generate the message files (.po), run yarn makemessages or python manage.py makemessages --locale=pt --locale=es --locale=fr --extension=html --ignore=env/**/*
  2. We use django-deep-translate to automatically translate the message files. Ensure DEEPL_TRANSLATE_KEY is set in smartforests/settings/local.py then run python manage.py translate_messages
  3. After translation, you must compile the message files using django-admin compilemessages

Stack

Hosting

Third party services