Skip to content
This repository has been archived by the owner on May 5, 2019. It is now read-only.

canonical-web-and-design/django-static-root-finder

Repository files navigation

*Deprecated and archived*

We no longer use this, and it is no longer actively maintained.

---

Django STATIC_ROOT finder

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

About

A static files finder to find files in the STATIC_ROOT directory.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages