Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (28 sloc) 1.07 KB

Installation and Configuration

$ pip install django-staticfilesplus

In settings.py replace the default STATICFILES_FINDERS definition with this:

STATICFILES_FINDERS = (
    'staticfilesplus.finders.FileSystemFinder',
    'staticfilesplus.finders.AppDirectoriesFinder',
)

And enable the default processors:

STATICFILESPLUS_PROCESSORS = (
    'staticfilesplus.processors.less.LESSProcessor',
    'staticfilesplus.processors.js.JavaScriptProcessor',
)

Assuming that django.contrib.staticfiles is in your INSTALLED_APPS (which it is by default) you're ready to go.

Settings

.. attribute:: STATICFILESPLUS_PROCESSORS

    :default: ``()``

    A list of active processors. See the processor documentation for details on how
    these work.


.. attribute:: STATICFILESPLUS_TMP_DIR

    :default: ``os.path.join(STATIC_ROOT, 'staticfilesplus_tmp)``

    A directory in which to write temporary working files. If it doesn't exist it will
    be created.
You can’t perform that action at this time.