98d58a3031bd0b85556518bef11d456cd958bef4
[emels.git] / emels / settings / static.py
1 # -*- coding: utf-8 -*-
2 import os.path
3
4 from .paths import PROJECT_DIR
5
6 MEDIA_ROOT = os.path.join(PROJECT_DIR, 'media/')
7 MEDIA_URL = '/media/'
8 STATIC_ROOT = os.path.join(PROJECT_DIR, 'static/')
9 STATIC_URL = '/static/'
10
11 STATICFILES_FINDERS = (
12     'django.contrib.staticfiles.finders.FileSystemFinder',
13     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
14     # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
15 )
16
17 STATICFILES_STORAGE = 'fnpdjango.pipeline_storage.GzipPipelineCachedStorage'
18
19 PIPELINE = {
20     'STYLESHEETS': {
21         'base': {
22             'source_filenames': (
23                 'css/base.scss',
24                 'css/main.scss',
25                 'jquery/colorbox/colorbox.css',
26                 'fnpdjango/annoy/annoy.css',
27             ),
28             'output_filename': 'compressed/base.css',
29         },
30     },
31     'JAVASCRIPT': {
32         'base': {
33             'source_filenames': (
34                 'jquery/cycle/jquery.cycle.all.js',
35                 'jquery/colorbox/jquery.colorbox-min.js',
36                 'jquery/colorbox/jquery.colorbox-pl.js',
37                 'js/formset.js',
38                 'sponsors/js/sponsors.js',
39                 'fnpdjango/annoy/annoy.js',
40             ),
41             'output_filename': 'compressed/base.js',
42         },
43     },
44     'CSS_COMPRESSOR': None,
45     'JS_COMPRESSOR': None,
46     'COMPILERS': (
47         'pipeline.compilers.sass.SASSCompiler',
48     )
49 }