Skip to main content

Django plugin wrapping whitenoise

Project description

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 the WHITENOISE_ROOT setting to BASE_DIR / "public" for serving files like robots.txt and favicons at the root of the site. The plugin sets WHITENOISE_KEEP_ONLY_HASHED_FILES = True to include only useful copies of the static files. 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

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

django_plugin_whitenoise-0.1.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

django_plugin_whitenoise-0.1.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file django_plugin_whitenoise-0.1.1.tar.gz.

File metadata

File hashes

Hashes for django_plugin_whitenoise-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e544a02ad12dd9554990f5fb402c7e5fdd2bde9b1730dfcf1407fb5b6b3f0e79
MD5 9e698497d5ae07c95a7fe19c3e5bbeee
BLAKE2b-256 e9e50f87e3ee9ff746b26f48a1bc4a6050e61d20ad5faab02db722c419550524

See more details on using hashes here.

File details

Details for the file django_plugin_whitenoise-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_plugin_whitenoise-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59f6972e65d3525ad1d9d48933e5a6cabdb376df73bdc2ccf758f267147490e4
MD5 7c947a551084d6179ff629b41245c1e4
BLAKE2b-256 4c0eb8c090c7f68e26527780a9fb1b7568b417520f19634bd44bb345648a2b2c

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