43dbb7c966bde8cbf8cdffdd070548abde5e5d87
[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 = 'pipeline.storage.PipelineCachedStorage'
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
29           'css/forum.scss',
30           'css/mil.scss'
31         ),
32         'output_filename': 'compressed/base.css',
33     },
34 }
35 PIPELINE_JS = {
36     'base': {
37         'source_filenames': (
38             'catalogue/js/jquery-ui-1.10.0.custom.js',
39             'catalogue/js/jquery.cycle.all.js',
40             'jquery/colorbox/jquery.colorbox-min.js',
41             'jquery/colorbox/jquery.colorbox-pl.js',
42             'catalogue/js/edumed.js',
43             'catalogue/js/lesson.js',
44             'sponsors/js/sponsors.js',
45             'curriculum/curriculum.js',
46             'js/formset.js',
47             'pybb/js/pybbjs.js',
48         ),
49         'output_filename': 'compressed/base.js',
50     },
51 }
52
53 PIPELINE_COMPILERS = (
54   'pipeline.compilers.sass.SASSCompiler',
55 )
56
57 PIPELINE_STORAGE = 'pipeline.storage.PipelineFinderStorage'