d50605899c96ac6b08be7b990c65e50357b37268
[fnp-django-template.git] / src / project_name / settings / static.py
1 from os import path
2 from paths import PROJECT_DIR
3
4
5 MEDIA_ROOT = path.join(PROJECT_DIR, 'var/media/')
6 MEDIA_URL = '/media/'
7 STATIC_ROOT = path.join(PROJECT_DIR, 'var/static/')
8 STATIC_URL = '/static/'
9
10 STATICFILES_FINDERS = (
11     'django.contrib.staticfiles.finders.FileSystemFinder',
12     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
13 #    'django.contrib.staticfiles.finders.DefaultStorageFinder',
14 )
15
16 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
17 PIPELINE_CSS_COMPRESSOR = None
18 PIPELINE_JS_COMPRESSOR = None
19 PIPELINE_CSS = {
20     'base': {
21         'source_filenames': (
22           'css/base.scss',
23         ),
24         'output_filename': 'compressed/base.css',
25     },
26 }
27 PIPELINE_JS = {
28     'base': {
29         'source_filenames': (
30         ),
31         'output_filename': 'compressed/base.js',
32     },
33 }
34
35 PIPELINE_COMPILERS = (
36   'pipeline.compilers.sass.SASSCompiler',
37 )
38
39 PIPELINE_STORAGE = 'pipeline.storage.PipelineFinderStorage'