update emails for stage2
[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/layout.scss',
27           'catalogue/css/exercise.scss',
28           'jquery/colorbox/colorbox.css',
29           'fnpdjango/annoy/annoy.css',
30         ),
31         'output_filename': 'compressed/base.css',
32     },
33 }
34 PIPELINE_JS = {
35     'base': {
36         'source_filenames': (
37             'jquery/colorbox/jquery.colorbox-min.js',
38             'jquery/colorbox/jquery.colorbox-pl.js',
39             'jquery/jquery.cycle.all.js',
40             'catalogue/js/edumed.js',
41             'sponsors/js/sponsors.js',
42             'js/formset.js',
43             'fnpdjango/annoy/annoy.js',
44             'js/checkfile.js',
45         ),
46         'output_filename': 'compressed/base.js',
47     },
48     'wtem': {
49         'source_filenames': (
50             'js/jquery-ui-1.10.0.custom.js',
51             'wtem/edumed.js',
52             'wtem/wtem.js',
53             'wtem/json2.js'
54         ),
55         'output_filename': 'compressed/wtem.js'
56     },
57 }
58
59 PIPELINE_COMPILERS = (
60   'pipeline.compilers.sass.SASSCompiler',
61 )