- Python 3 (Which version? ... Works in 3.11)
- pip
- Docker (if using Testcontainers in tests)
Clone this repo:
git clone https://git.rwth-aachen.de/dalia/backend/django.gitCreate and activate a virtual environment:
cd django
python3 -m venv .env
source .env/bin/activateInstall dependencies:
pip install -r requirements-dev.txtTestcontainers is used to provide DALIA's Fuseki triplestore as dependency during tests via the triplestore pytest fixture.
To run tests:
pytestThe triplestore pytest fixture can also be configured to use a custom URL to DALIA's Fuseki triplestore. This can be achieved by using the TRIPLESTORE_URL environment variable.
To run tests:
TRIPLESTORE_URL="http://127.0.0.1:3030/" pytestNote: You may need to alter DALIA_TRIPLESTORE_BASE_URL in project/settings.py to the correct address of DALIA's Fuseki triplestore.
To start Django:
./manage.py runserver 0.0.0.0:8000