Skip to main content

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).

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.1.tar.gz (4.7 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django-static-root-finder-0.3.1.tar.gz
Algorithm Hash digest
SHA256 11cd1275a2eae83d6ddce9b3bbd51575b910fd460cae1960fe794d42338cd9b8
MD5 5262528b1369ca3b70a80075f9327387
BLAKE2b-256 aabd2670b1662b8c35adf41c41fb6cdbcfdc34122816deca0740638550a3c194

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.1 This release

1 file

0.3.0

1 file

0.2.1

1 file

0.2.0

1 file

0.1.1

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page