Skip to content
Python HTML JavaScript Jupyter Notebook CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
arche
archiv
bib
browsing
checks
data
dumps
entities
iad
idprovider
shapes
sparql
stats
vocabs
webpage
.gitignore
LICENSE
README.md
csv2vocabs.ipynb
delete_polygons_mp_croatia.ipynb
dump___objects__periods__concepts.ipynb
fix_poly_vbg.ipynb
import_archent.ipynb
import_file_checker_report.ipynb
import_monument.ipynb
import_mp_shapes.ipynb
import_periods.ipynb
import_research.ipynb
import_shp.ipynb
import_site_archent_from_shape.ipynb
import_sites.ipynb
lau2sau.ipynb
legacy_data_update.ipynb
make_sites_public__delete_cr_polygons.ipynb
manage.py
migrate_skoslabels.ipynb
requirements.txt
spatial_lookup_for_researchactivities.ipynb
temp.py

README.md

IRON-AGE-DANUBE (IAD)

Code Repo of the IAD's web-app.

install

  1. Download or Clone this repo
  2. Adapt the information in webpage/metadata.py according to your needs.
  3. Create an virtual environment and run pip install -r requirements.txt

first steps

This projects uses modularized settings (to keep sensitive information out of version control or being able to use the same code for development and production). Therefore you'll have to append all manage.py commands with a --settings parameter pointing to the settings file you'd like to run the code with. For development just append --settings={nameOfYouProject}.settings.dev to the following commands, e.g. python manage.py makemigrations --settings=iad.settings.dev

  1. Run makemigrations, migrate, and runserver and check http://127.0.0.1:8000/

Tests

To get needed software you can run

pip install -r requirements_test.txt

To run the tests execute

python manage.py test --settings=iad.settings.test

Technical setup

storage

This application uses PostgreSQL with the PostGIS extension to support spatial queries.

application layer

The application layer is implemented with the Python based web framework Django. GIS related functionality (see here for a detailed overview of those functions) are realized by with GeoDjango. Please refer to GeoDjangos Documentation to learn about needed requirements to run GeoDjango. The application is mainly run server-side although the data is accessible through an REST-API implemented with Django REST framework.

Front end layer

The presentation of GIS-related data on the client side (web-browser) is realized with Leaflet which processes the data serialized by the backend into GeoJSON though data from different sources (e.g. raster images, served following the WMS protocol ) can be integrated as well.

You can’t perform that action at this time.