Skip to main content

Build, collect and distribute django static files

Project description

hatch-django-collectstatic

Homepage: https://cgit.adnoto.dev/hatch-django-collectstatic.git/

Collect a django project's static files into its binary distribution archive.

Example usage in pyproject.toml:

[build-system]
requires = ["hatchling >= 1.26", "hatch-django-collectstatic"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel.hooks.django-collectstatic]
settings = "my_django_package.project.settings"

# If you have installed Django apps from packages besides Django,
# you'll need to enable the require-runtime-dependencies feature of
# hatch in order to make these packages available when collecting
# static files.
# Default value of require-runtime-dependencies = false
# require-runtime-dependencies = true

[tool.hatch.build.targets.wheel.shared-data]
# Mapping from output directory to the distribution path.  The
# following configuration will place the files in the .data directory
# of the wheel, under "data/share/static".
# See https://packaging.python.org/en/latest/specifications/binary-distribution-format/#the-data-directory
"static" = "share/static"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hatch_django_collectstatic-0.0.6.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hatch_django_collectstatic-0.0.6-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file hatch_django_collectstatic-0.0.6.tar.gz.

File metadata

File hashes

Hashes for hatch_django_collectstatic-0.0.6.tar.gz
Algorithm Hash digest
SHA256 11b198808cc38e7b8638eb3df24471af90cfd58635fbb7b39851eb408460c180
MD5 15ad9a8edb02997e81340fed38f1bb8d
BLAKE2b-256 886078c27a7d5f48de3a9702db5bd2c440ff5a3f62b36b77b176d6578d5513e9

See more details on using hashes here.

File details

Details for the file hatch_django_collectstatic-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for hatch_django_collectstatic-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0d09fe9bd677a3896220290cd16f82b97973382a9ab6c58fa1316a08ffc2b099
MD5 0b3bb2d5861e10961daae217068e596d
BLAKE2b-256 9245da562bd8b6aa62a30d514e4d24ee66551f246e8d20f1c41583b64cc850cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page