new emails for wtem results
[edumed.git] / edumed / 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 #    'django.contrib.staticfiles.finders.DefaultStorageFinder',
10 )
11
12 STATICFILES_STORAGE = 'fnpdjango.utils.pipeline_storage.GzipPipelineCachedStorage'
13 PIPELINE_CSS_COMPRESSOR = None
14 PIPELINE_JS_COMPRESSOR = None
15 PIPELINE_CSS = {
16     'base': {
17         'source_filenames': (
18           'css/base.scss',
19           'css/main.scss',
20           'css/form.scss',
21           'catalogue/css/carousel.scss',
22           'catalogue/css/layout.scss',
23           'catalogue/css/lesson.scss',
24           'catalogue/css/exercise.scss',
25           'catalogue/css/section_list.scss',
26           'curriculum/curriculum.scss',
27           'jquery/colorbox/colorbox.css',
28           'fnpdjango/annoy/annoy.css',
29
30           'css/forum.scss',
31           'css/mil.scss'
32         ),
33         'output_filename': 'compressed/base.css',
34     },
35 }
36 PIPELINE_JS = {
37     'base': {
38         'source_filenames': (
39             'catalogue/js/jquery-ui-1.10.0.custom.js',
40             'catalogue/js/jquery.cycle.all.js',
41             'jquery/colorbox/jquery.colorbox-min.js',
42             'jquery/colorbox/jquery.colorbox-pl.js',
43             'catalogue/js/carousel.js',
44             'catalogue/js/edumed.js',
45             'catalogue/js/lesson.js',
46             'catalogue/js/lesson-list.js',
47             'sponsors/js/sponsors.js',
48             'curriculum/curriculum.js',
49             'js/formset.js',
50             'pybb/js/pybbjs.js',
51             'fnpdjango/annoy/annoy.js',
52         ),
53         'output_filename': 'compressed/base.js',
54     },
55     'wtem': {
56         'source_filenames': (
57             'catalogue/js/jquery-ui-1.10.0.custom.js',
58             'wtem/edumed.js',
59             'wtem/wtem.js',
60             'wtem/json2.js'
61         ),
62         'output_filename': 'compressed/wtem.js'
63     },
64 }
65
66 PIPELINE_COMPILERS = (
67   'pipeline.compilers.sass.SASSCompiler',
68 )