A static files finder to find files in the STATIC_ROOT directory.
Project description
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).
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
File details
Details for the file django-static-root-finder-0.2.1.tar.gz
.
File metadata
- Download URL: django-static-root-finder-0.2.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3be0aa2f04ad60de8d05052a90e1d06a7a0f740d4f53730bec2ea6a8393e91d |
|
MD5 | fa5c31ab6156d84f96346ef8f9a00da6 |
|
BLAKE2b-256 | b2409e99f1e8b6fbe3f4b7205f81b516dc8eddaecfd4eec590ae7560b878bb9b |