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