More archeology.
[edumed.git] / src / edumed / settings / static.py
1 # -*- coding: utf-8 -*-
2
3 MEDIA_ROOT = '/app/var/media/'
4 MEDIA_URL = '/media/'
5 STATIC_ROOT = '/app/var/static/'
6 STATIC_URL = '/static/'
7
8 STATICFILES_FINDERS = (
9     'django.contrib.staticfiles.finders.FileSystemFinder',
10     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
11     # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
12 )
13
14 STATICFILES_STORAGE = 'fnpdjango.utils.pipeline_storage.GzipPipelineCachedStorage'
15 PIPELINE_CSS_COMPRESSOR = None
16 PIPELINE_JS_COMPRESSOR = None
17 PIPELINE_CSS = {
18     'base': {
19         'source_filenames': (
20           'css/base.scss',
21           'css/main.scss',
22           'css/form.scss',
23           'catalogue/css/carousel.scss',
24           'catalogue/css/layout.scss',
25           'catalogue/css/lesson.scss',
26           'catalogue/css/exercise.scss',
27           'catalogue/css/section_list.scss',
28           'curriculum/curriculum.scss',
29           'jquery/colorbox/colorbox.css',
30           'fnpdjango/annoy/annoy.css',
31
32           'css/forum.scss',
33           'css/mil.scss'
34         ),
35         'output_filename': 'compressed/base.css',
36     },
37 }
38 PIPELINE_JS = {
39     'base': {
40         'source_filenames': (
41             'catalogue/js/jquery-ui-1.10.0.custom.js',
42             'catalogue/js/jquery.cycle.all.js',
43             'jquery/colorbox/jquery.colorbox-min.js',
44             'jquery/colorbox/jquery.colorbox-pl.js',
45             'catalogue/js/carousel.js',
46             'catalogue/js/edumed.js',
47             'catalogue/js/lesson.js',
48             'catalogue/js/lesson-list.js',
49             'sponsors/js/sponsors.js',
50             'curriculum/curriculum.js',
51             'js/formset.js',
52             'pybb/js/pybbjs.js',
53             'fnpdjango/annoy/annoy.js',
54         ),
55         'output_filename': 'compressed/base.js',
56     },
57     'wtem': {
58         'source_filenames': (
59             'catalogue/js/jquery-ui-1.10.0.custom.js',
60             'wtem/edumed.js',
61             'wtem/wtem.js',
62             'wtem/json2.js'
63         ),
64         'output_filename': 'compressed/wtem.js'
65     },
66 }
67
68 PIPELINE_COMPILERS = (
69   'pipeline.compilers.sass.SASSCompiler',
70 )