How to use the whitenoise.django.GzipManifestStaticFilesStorage function in whitenoise

To help you get started, we’ve selected a few whitenoise examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OpenUpSA / municipal-data / municipal_finance / pipeline.py View on Github external
from __future__ import absolute_import

import codecs

import scss

from django.conf import settings

from whitenoise.django import GzipManifestStaticFilesStorage
from pipeline.storage import PipelineMixin
from pipeline.compilers import SubProcessCompiler


class GzipManifestPipelineStorage(PipelineMixin, GzipManifestStaticFilesStorage):
    pass


class PyScssCompiler(SubProcessCompiler):
    output_extension = 'css'

    def match_file(self, filename):
        return filename.endswith('.scss')

    def compile_file(self, infile, outfile, outdated=False, force=False):
        if not outdated and not force:
            return

        result = scss.compiler.compile_file(
            infile,
            search_path=settings.PYSCSS_LOAD_PATHS)
github public-people / public-people-data / publicpeople / pipeline.py View on Github external
from __future__ import absolute_import

import codecs

import scss

from django.conf import settings

from whitenoise.django import GzipManifestStaticFilesStorage
from pipeline.storage import PipelineMixin
from pipeline.compilers import SubProcessCompiler


class GzipManifestPipelineStorage(PipelineMixin, GzipManifestStaticFilesStorage):
    pass


class PyScssCompiler(SubProcessCompiler):
    output_extension = 'css'

    def match_file(self, filename):
        return filename.endswith('.scss')

    def compile_file(self, infile, outfile, outdated=False, force=False):
        if not outdated and not force:
            return

        result = scss.compiler.compile_file(
            infile,
            search_path=settings.PYSCSS_LOAD_PATHS)
github mozilla / normandy / recipe-server / normandy / storage.py View on Github external
from pipeline.storage import PipelineMixin
from whitenoise.django import GzipManifestStaticFilesStorage


class GzipManifestPipelineStorage(PipelineMixin, GzipManifestStaticFilesStorage):
    pass
github laws-africa / indigo / indigo / pipeline.py View on Github external
from whitenoise.django import GzipManifestStaticFilesStorage
from pipeline.storage import PipelineMixin


class GzipManifestPipelineStorage(PipelineMixin, GzipManifestStaticFilesStorage):
    pass