A static files finder to find files in the STATIC_ROOT directory.
Setup
# settings.py
STATICFILES_FINDERS = ['django_static_root_finder.finders.StaticRootFinder']
Definition
Set your STATIC_ROOT. E.g.:
# settings.py
STATIC_ROOT = 'static' # For example
STATIC_URL = '/static/'
Usage
The URL http://example.com/static/css/global.css should successfully link to ./static/css/global.css.
Production —
By default, when DEBUG = False as in production use, static files aren’t served with Django at all. To change this behaviour, enable a WSGI static serving module like [dj-static](https://github.com/kennethreitz/dj-static).
Metadata
Release files for django-static-root-finder 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-static-root-finder-0.3.1.tar.gz | 4.7 kB | Details |
Release files / django-static-root-finder-0.3.1.tar.gz
| Download URL | django-static-root-finder-0.3.1.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11cd1275a2eae83d6ddce9b3bbd51575b910fd460cae1960fe794d42338cd9b8
|
|
BLAKE2b-256 checksum How to use checksums |
aabd2670b1662b8c35adf41c41fb6cdbcfdc34122816deca0740638550a3c194
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |