whitenoise-spa
Serve SPA (Single Page Application) in django using whitenoise
Installation
You can install the package via pip:
pip install whitenoise-spa
Usage
- Edit your
settings.pyfile and addwhitenoise_spa.middleware.WhiteNoiseSPAMiddlewareto the MIDDLEWARE list. The middleware should be placed directly after the Django SecurityMiddleware (if you are using it) and before all other middleware. This middleware replaces the whitenoise middleware.MIDDLEWARE = [ # ... "django.middleware.security.SecurityMiddleware", "whitenoise_spa.middleware.WhiteNoiseSPAMiddleware", # ... ]
- Configure SPA root and urls.
WHITENOISE_SPA_ROOT = BASE_DIR / "dist" WHITENOISE_SPA_URL_PATTERN = "/|/login/|/settings/"
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for whitenoise-spa 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| whitenoise_spa-2.0.0.tar.gz | 3.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| whitenoise_spa-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / whitenoise_spa-2.0.0.tar.gz
| Download URL | whitenoise_spa-2.0.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9143494b5932a963f37075652f0e22e0891a13d17f174038fe444add4263b0c1
|
|
BLAKE2b-256 checksum How to use checksums |
ac0f6a461a36a0c6fde5cbfc0149516acf2c8afac9ea8a57bdd91ff49cbd79f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / whitenoise_spa-2.0.0-py3-none-any.whl
| Download URL | whitenoise_spa-2.0.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8004e40473734cd6ecf7d62068fe5006202981978307fe7cf254fda2383ab977
|
|
BLAKE2b-256 checksum How to use checksums |
c05844e9fb565dadb2717bffd06b104d094919f7176ef75dffd6586c39c791c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Security for whitenoise-spa 2.0.0
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.