Django plugin wrapping whitenoise
Project description
django-plugin-whitenoise
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_plugin_whitenoise-0.1.1.tar.gz.
File metadata
- Download URL: django_plugin_whitenoise-0.1.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e544a02ad12dd9554990f5fb402c7e5fdd2bde9b1730dfcf1407fb5b6b3f0e79
|
|
| MD5 |
9e698497d5ae07c95a7fe19c3e5bbeee
|
|
| BLAKE2b-256 |
e9e50f87e3ee9ff746b26f48a1bc4a6050e61d20ad5faab02db722c419550524
|
File details
Details for the file django_plugin_whitenoise-0.1.1-py3-none-any.whl.
File metadata
- Download URL: django_plugin_whitenoise-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59f6972e65d3525ad1d9d48933e5a6cabdb376df73bdc2ccf758f267147490e4
|
|
| MD5 |
7c947a551084d6179ff629b41245c1e4
|
|
| BLAKE2b-256 |
4c0eb8c090c7f68e26527780a9fb1b7568b417520f19634bd44bb345648a2b2c
|