Skip to main content

django-plugin-whitenoise

PyPI Changelog Tests License

Django plugin wrapping whitenoise

Installation

First configure your Django project to use DJP.

Then install this plugin in the same environment as your Django application.

pip install django-plugin-whitenoise

Usage

The plugin sets defaults for the following settings if they are found to be unset. This completely configures static file handling so you should have a working static files process just by installing the plugin.

  • WHITENOISE_ROOT defaults to BASE_DIR / "public". Put files like robots.txt and favicons here to serve them at the root of the site.
  • WHITENOISE_KEEP_ONLY_HASHED_FILES defaults to True to include only useful copies of the static files.
  • STATICFILES_DIRS defaults to [BASE_DIR / "static"].Put project-wide static files here.
  • STATIC_ROOT and STATIC_URL are set to reasonable values.

Override these settings as desired after the djp.settings(globals()) call.

No further configuration is needed, refer to whitenoise documentation to learn about your new capabilities.

Development

Install uv following uv's install documentation. Install just with uv tool install rust-just.

Testing

just test

Linting

just lint

Metadata

Release files for django-plugin-whitenoise 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-plugin-whitenoise 0.1.2
File Size Uploaded Provenance Actions
django_plugin_whitenoise-0.1.2.tar.gz 2.2 kB Without provenance Details for django_plugin_whitenoise-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-plugin-whitenoise 0.1.2
File Interpreter ABI Platform Actions
django_plugin_whitenoise-0.1.2-py3-none-any.whl Python 3 none any Details for django_plugin_whitenoise-0.1.2-py3-none-any.whl

Total release size: 5.5 kB

Release files / django_plugin_whitenoise-0.1.2.tar.gz

Download URL django_plugin_whitenoise-0.1.2.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b8bcedac29f9c45960c33a5d800a250236aefe4680b9e4f9356ef3125f4f6d88
BLAKE2b-256 checksum
How to use checksums
1c4d05687f2ba5f02fd6892d9af84a66d6ff738ac56bdc06fb624207210abc4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.10

Release files / django_plugin_whitenoise-0.1.2-py3-none-any.whl

Download URL django_plugin_whitenoise-0.1.2-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33b73264e8cb1dc03b3c83e18a9f8f655ba3641c88e82dc4046f6325a40508bd
BLAKE2b-256 checksum
How to use checksums
eda76e77dc90b614cc81f819478b87d993427e0aaaa5b34152f291e0060b04a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.10

Security for django-plugin-whitenoise 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page