Skip to main content

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

django-static-root-finder-0.3.0.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file django-static-root-finder-0.3.0.tar.gz.

File metadata

File hashes

Hashes for django-static-root-finder-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b35e7b9fc22ad0b96e100b377efbc0a467a92b78e20c0d29f6b8dd98a0c4dc9b
MD5 2881d6905bedf348eada39030534216a
BLAKE2b-256 c8624ce702ff0ee7818997afe224169b1b7d076a057bf55fac02107c26d8e774

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page