Django based server-tool to manage historic map data.
- Django
- Python 3
- pip3 Paket manager
- Postgresql database + user
- start postgres:
systemctl start postgres
and create a user owning a databace - in OHDM/settings.py search for
DATABASES
and change the USER- and NAME-field to match your database. Finally replace the ENGINE-value withdjango.db.backends.postgresql
- Replace the path inside
STATICFILES_DIRS
to amtch the servers architecture. - Use
manage.py
to populate the databse and migrate the changes. --1.manage.py makemigrations
--2.manage.py migrate
- Finally start the server with
manage.py runserver
The three datatypes cann be accessed via the top-bar menu, which forwards to a complete list of items. The main-URLs resolve as followed:
/geom/
lists Geometries/obg/
lists Geometry Objects/path/
lists Paths
can be fond in the pdf-file within the repository. It explains the API and shows example diagrams.
- https://www.postgresql.org/docs/11/index.html Postgres Help
- https://docs.djangoproject.com/en/2.1/ Django Help
- https://packaging.python.org/tutorials/installing-packages/ Pip Help