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 = ['template_extensions.finders.RootFileFinder']

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.

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

Uploaded Source

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