Django 1.8
[prawokultury.git] / prawokultury / settings.d / 50-static.py
1 MEDIA_ROOT = path.join(PROJECT_DIR, 'media/')
2 MEDIA_URL = '/media/'
3 STATIC_ROOT = path.join(PROJECT_DIR, 'static/')
4 STATIC_URL = '/static/'
5
6 STATICFILES_FINDERS = (
7     'django.contrib.staticfiles.finders.FileSystemFinder',
8     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
9     'pipeline.finders.PipelineFinder',
10 )
11
12 STATICFILES_STORAGE = 'fnpdjango.pipeline_storage.GzipPipelineCachedStorage'
13
14 PIPELINE = {
15     'CSS_COMPRESSOR': None,
16     'JS_COMPRESSOR': None,
17     'COMPILERS': [
18         'pipeline.compilers.sass.SASSCompiler',
19     ],
20     'STYLESHEETS': {
21         'base': {
22             'source_filenames': (
23                 'css/base.scss',
24                 'css/layout.scss',
25                 'css/header.scss',
26                 'css/menu.scss',
27                 'css/search.scss',
28                 'css/sidebar.scss',
29                 'css/promobox.scss',
30                 'css/entry.scss',
31                 'css/footer.scss',
32                 'css/prevnext.scss',
33                 'css/forms.scss',
34                 'events/events.scss',
35                 'fnpdjango/annoy/annoy.css',
36             ),
37             'output_filename': 'compressed/base.css',
38         },
39         'questions': {
40             'source_filenames': (
41                 'questions/tagcloud.scss',
42             ),
43             'output_filename': 'compressed/questions.css'
44         }
45     },
46     'JAVASCRIPT': {
47         'base': {
48             'source_filenames': (
49                 'js/promobox.js',
50                 'shop/shop.js',
51                 'fnpdjango/annoy/annoy.js',
52             ),
53             'output_filename': 'compressed/base.js',
54         },
55         'questions': {
56             'source_filenames': (
57                 'questions/tagcloud.js',
58             ),
59             'output_filename': 'compressed/questions.js'
60         }
61     }
62 }