đź“– Full documentation on https://docs.dpaste.org
requires at a minimum Python 3.6 and Django 3.2.
python3 -m venv venv
source venv/bin/activate
pip install -e .[dev]
./manage.py migrate
./manage.py runserver
client/scss/dpaste.scss --compiled--> dpaste/static/dpaste.css
./manage.py collectstatic [dpaste/static/dpaste.css --> .static (STATIC_ROOT)]
The project’s preferred way for local development is docker-compose:
$ docker-compose up
This will open the Django runserver on http://127.0.0.1:8000. Changes to the code are automatically reflected in the Docker container and the runserver will reload automatically.
Upon first run you will need to migrate the database. Do that in a separate terminal window:
$ docker-compose run --rm app ./manage.py migrate