Skip to main content

Build, collect and distribute django static files

Project description

hatch-django-collectstatic

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.5.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.5-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for hatch_django_collectstatic-0.0.5.tar.gz
Algorithm Hash digest
SHA256 b7e417de67327f70b06620df994856ac13bb7750e957469a4c81b5bf112dfead
MD5 2c8e74e7d01becdbaf6b55b017ef266d
BLAKE2b-256 fa9d58fcd0929dd0437f868fb5390bcc32c3caa1d320b69307214c9473907b3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hatch_django_collectstatic-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2772fbbfaeb450ab6834d8a326ed81c7b23656b219470630c9716fbdff12f58a
MD5 3de026047fb520136be1ba2186f6c6c7
BLAKE2b-256 4f5c36bcb2a1ab1790ca7a2ec04182e436938b1ee1b8107383f45d8071150200

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