Merge branch 'master' into rwd
[wolnelektury.git] / wolnelektury / settings / static.py
1 from os import path
2 from .paths import PROJECT_DIR
3
4 # Absolute path to the directory that holds media.
5 # Example: "/home/media/media.lawrence.com/"
6 MEDIA_ROOT = path.join(PROJECT_DIR, '../media/')
7 STATIC_ROOT = path.join(PROJECT_DIR, '../static/')
8 SEARCH_INDEX = path.join(PROJECT_DIR, '../search_index/')
9
10 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
11 # trailing slash if there is a path component (optional in other cases).
12 # Examples: "http://media.lawrence.com", "http://example.com/media/"
13 MEDIA_URL = '/media/'
14 STATIC_URL = '/static/'
15
16 # CSS and JavaScript file groups
17
18
19 PIPELINE_CSS = {
20     'main': {
21         # styles both for mobile and for big screen
22         'source_filenames': [
23             'css/jquery.countdown.css', 
24
25             'css/main/*.scss',
26
27             'sponsors/css/sponsors.css',
28             'funding/funding.scss',
29             'polls/polls.scss',
30
31             'css/social/shelf_tags.css',
32
33             'uni_form/uni-form.css',
34             'uni_form/default.uni-form.css',
35
36             'css/ui-lightness/jquery-ui-1.8.16.custom.css',
37         ],
38         'output_filename': 'css/compressed/main.css',
39     },
40     'book': {
41         'source_filenames': [
42             'css/master.book.css',
43         ],
44         'output_filename': 'css/compressed/book.css',
45     },
46     'player': {
47         'source_filenames': [
48             'jplayer/jplayer.blue.monday.css', 
49             'player/player.css', 
50         ],
51         'output_filename': 'css/compressed/player.css',
52     },
53     'simple': {
54         'source_filenames': ('css/simple.css',),
55         'output_filename': 'css/compressed/simple.css',
56     },
57 }
58
59 PIPELINE_JS = {
60     'base': {
61         'source_filenames': (
62             'js/jquery.cycle.min.js',
63             'js/jquery.jqmodal.js',
64             'js/jquery.form.js',
65             'js/jquery.countdown.js', 'js/jquery.countdown-pl.js',
66             'js/jquery.countdown-de.js', 'js/jquery.countdown-uk.js',
67             'js/jquery.countdown-es.js', 'js/jquery.countdown-lt.js',
68             'js/jquery.countdown-ru.js', 'js/jquery.countdown-fr.js',
69
70             'js/jquery-ui-1.8.16.custom.min.js',
71
72             'js/locale.js',
73             'js/dialogs.js',
74             'js/base.js',
75             'pdcounter/pdcounter.js',
76             'sponsors/js/sponsors.js',
77             'player/openplayer.js',
78             'js/search.js',
79             'funding/funding.js',
80             
81             'uni_form/uni-form.js',
82             ),
83         'output_filename': 'js/base.min.js',
84     },
85     'player': {
86         'source_filenames': [
87             'jplayer/jquery.jplayer.min.js', 
88             'jplayer/jplayer.playlist.min.js', 
89             'player/player.js', 
90         ],
91         'output_filename': 'js/player.min.js',
92     },
93     'book': {
94         'source_filenames': [
95             'js/jquery.eventdelegation.js',
96             'js/jquery.scrollto.js',
97             'js/jquery.highlightfade.js',
98             'js/book.js',
99             'player/openplayer.js',
100         ],
101         'output_filename': 'js/book.min.js',
102     },
103     'book_ie': {
104         'source_filenames': ('js/ierange-m2.js',),
105         'output_filename': 'js/book_ie.min.js',
106     }
107
108 }
109
110 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
111 PIPELINE_CSS_COMPRESSOR = None
112 PIPELINE_JS_COMPRESSOR = None
113
114 PIPELINE_COMPILERS = (
115     'pyscss_compiler.PySCSSCompiler',
116 )
117 PIPELINE_PYSCSS_BINARY = '/usr/bin/env pyscss'
118 PIPELINE_PYSCSS_ARGUMENTS = ''