This is an package mainly for in-house usage. There are a lot of admin packages used that might not work well in your environment (ex: django-rq instead of celery for background jobs). Its primary goal is to help springboard new Digital Humanities mapping projects with a decent amount of flexability.
If you cannot directly use this package, consider forking and customizing for your own usage/environment or just use it for inspiration.
Requirements
gdal,gdal-toolsfor postgis and overhead tile generationffmpegfor video resolution and thumbnail generationlibmagicfor image processingredisfor background job support- Assumes
postgresdatabase with gis (postgis)
Install
Add all the deps (including django_dh_map) to your INSTALLED_APPS
INSTALLED_APPS = [
...,
'django_dh_map',
'admin_interface',
'colorfield',
'nested_admin',
'django_jsonform',
'adminsortable2',
'solo',
'tinymce',
'admin_async_upload',
'imagekit',
'django_rq',
'django.contrib.gis',
'django.contrib.postgres',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'polymorphic',
'rest_framework',
'rest_framework_gis',
...,
]
Add the urls to your project
urlpatterns = [
...,
# django-async-upload endpoints
path('admin_async_upload/', include('admin_async_upload.urls')),
# tinymce endpoints
path('tinymce/', include('tinymce.urls')),
# django_rq admin endpoints
path('django-rq/', include('django_rq.urls')),
# django_dh_map endpoints
path('', include("django_dh_map.urls")),
...,
]
Run python manage.py migrate
Include the package javascript and css into your base.html file's head section
{% load static %}
...
<head>
...
<link rel="stylesheet" href="{% static 'django_dh_map/dist/django_dh_map.css' %}">
<script src="{% static 'django_dh_map/dist/django_dh_map.js' %}" defer></script>
...
</head>
Example Project
See example/README.md for instructions for running the example app (using Docker). Run the docker compose commands from the root directory.
Development
Build assets
# install node_modules
docker run --rm -it -v $PWD:/app/ -w /app/vite node:25.5 yarn
# build assets
docker run --rm -it -v $PWD:/app/ -w /app/vite node:25.5 yarn build
# build assets and watch for changes
docker run --rm -it -v $PWD:/app/ -w /app/vite node:25.5 yarn watch
docker run --rm -it -v $PWD:/app/ -w /app/vite node:25.5 yarn watch_dist
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_dh_map-0.3.0.tar.gz.
File metadata
- Download URL: django_dh_map-0.3.0.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5bf040d9403ddee3c448886b21c5ae73b2e6fb99e4e895ebcc02526a4150dc8
|
|
| MD5 |
2f0d5e19b0ec021f7a0700ff4d0285ee
|
|
| BLAKE2b-256 |
7afee30302c40586b553906ae4234d484c20ff61e7a3a25fc52d858fe7882281
|
Provenance
The following attestation bundles were made for django_dh_map-0.3.0.tar.gz:
Publisher:
main.yaml on sfu-dhil/django-dh-map
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_dh_map-0.3.0.tar.gz -
Subject digest:
e5bf040d9403ddee3c448886b21c5ae73b2e6fb99e4e895ebcc02526a4150dc8 - Sigstore transparency entry: 2679758674
- Sigstore integration time:
-
Permalink:
sfu-dhil/django-dh-map@b865309a595eea480fcc3508751a4f6a388d7d7e -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/sfu-dhil
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yaml@b865309a595eea480fcc3508751a4f6a388d7d7e -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_dh_map-0.3.0-py3-none-any.whl.
File metadata
- Download URL: django_dh_map-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
693d9c8b8e8e36de1f01cea6d2535b43f6d86c1e9725e84845b21ac5b2dfb539
|
|
| MD5 |
a36c612b5e473c231053c1a110925f32
|
|
| BLAKE2b-256 |
a0ebaf08ff5c6bf745ffc2b331d1725b476d3fdb412cd8981cf4ef65b4d873e7
|
Provenance
The following attestation bundles were made for django_dh_map-0.3.0-py3-none-any.whl:
Publisher:
main.yaml on sfu-dhil/django-dh-map
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_dh_map-0.3.0-py3-none-any.whl -
Subject digest:
693d9c8b8e8e36de1f01cea6d2535b43f6d86c1e9725e84845b21ac5b2dfb539 - Sigstore transparency entry: 2679758792
- Sigstore integration time:
-
Permalink:
sfu-dhil/django-dh-map@b865309a595eea480fcc3508751a4f6a388d7d7e -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/sfu-dhil
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yaml@b865309a595eea480fcc3508751a4f6a388d7d7e -
Trigger Event:
push
-
Statement type: