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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django_plugin_whitenoise-0.1.0.tar.gz
Algorithm Hash digest
SHA256 49dea7e8cdf42686fbabe03729a15eb1790ada49b82e9798ef895a4b04cb350a
MD5 5035e07925a0709d388d7ca13af6e19b
BLAKE2b-256 2423ea23e093964cde6b9aaf85657a3e73793a9e5c3f917b1dbd1635f6582b70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_plugin_whitenoise-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a12a6d699a8ebb2e7fc96e2d5798daa2d622b8576c4c32321c3103f6672049bf
MD5 71629cab5310923581ed7e4372f970d7
BLAKE2b-256 d362592cc0921707d90acd69237ff75d24934c926c38bce837f883eae34d7c0a

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