示例#1
0
 def test_get_js_files(self):
     """
     Should return a list of javascript files from 
     media/common/js_includes.xml
     """
     from madrona.common import assets
     files = assets.get_js_files()
     self.assertEquals(files.__class__.__name__, 'list')
     self.assertTrue(len(files) > 0)
示例#2
0
文件: tests.py 项目: Ecotrust/madrona
 def test_get_js_files(self):
     """
     Should return a list of javascript files from 
     media/common/js_includes.xml
     """
     from madrona.common import assets
     files = assets.get_js_files()
     self.assertEquals(files.__class__.__name__, 'list')
     self.assertTrue(len(files) > 0)
示例#3
0
from madrona.common import assets

COMPRESS_CSS = {
    'application': {
        'source_filenames': assets.get_css_files(),
        'output_filename': 'common/css/madrona.r?.css',
        'extra_context': {
            'media': 'all'
        }
    }
}

COMPRESS_JS = {
    'application': {
        'source_filenames': assets.get_js_files(),
        'output_filename': 'madrona.r?.js'
    },
    'tests': {
        'source_filenames': assets.get_js_test_files(),
        'output_filename': 'madrona_tests.r?.js'
    }
}

COMPRESS_VERSION = True
COMPRESS_AUTO = True

GOOGLE_ANALYTICS_MODEL = True

MIDDLEWARE_CLASSES = (
    # GZip speeds up downloads by compressing on the fly
示例#4
0
from madrona.common import assets

COMPRESS_CSS = {
    'application': {
        'source_filenames': assets.get_css_files(),
        'output_filename': 'common/css/madrona.r?.css',
        'extra_context': {
            'media': 'all'
        }
    }
}

COMPRESS_JS = {
    'application': {
        'source_filenames': assets.get_js_files(),
        'output_filename': 'madrona.r?.js'
    },
    'tests': {
        'source_filenames': assets.get_js_test_files(),
        'output_filename': 'madrona_tests.r?.js'
    }
}

COMPRESS_VERSION = True
COMPRESS_AUTO = True

GOOGLE_ANALYTICS_MODEL = True

MIDDLEWARE_CLASSES = (
    # GZip speeds up downloads by compressing on the fly