Set up a development environment#
The package is developed with uv, which installs the Python version and every dependency the project needs. This page takes you from a clone of the repository to the example project running on your machine.
Install the project#
Clone the repository.
$ git clone https://github.com/FAIR-DM/django-partial-dates.git $ cd django-partial-dates
Install the dependencies, including the development tools.
$ uv sync
Install the hooks, so that the linters run on every commit.
$ uv run pre-commit install
Run the example project#
The repository holds a small project, in example/, with a list of samples, a form to enter one and the admin.
Create the database and fill it.
$ uv run python example/manage.py migrate $ uv run python example/manage.py seed
Start the server.
$ uv run python example/manage.py runserver 8033
Open
http://localhost:8033/.