93493654cffa8efe8226df1d3fca81561d906192
[fnp-django-template.git] / src / 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             'jquery.min.js',
31         ),
32         'output_filename': 'compressed/base.js',
33     },
34 }
35
36 PIPELINE_COMPILERS = (
37   'pipeline.compilers.sass.SASSCompiler',
38 )
39
40 PIPELINE_STORAGE = 'pipeline.storage.PipelineFinderStorage'