Basically usable funding workflow.
[wolnelektury.git] / wolnelektury / settings / static.py
1 from os import path
2 from settings.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 PIPELINE_CSS = {
18     'all': {
19         # styles both for mobile and for big screen
20         'source_filenames': [
21             'css/jquery.countdown.css', 
22
23             'css/base.css',
24             'css/cite.css',
25             'css/header.css',
26             'css/main_page.css',
27             'css/dialogs.css',
28             'css/picture_box.css',
29             'css/book_box.css',
30             'css/catalogue.css',
31             'sponsors/css/sponsors.css',
32             'css/auth.css',
33             'funding/funding.scss',
34             'css/form.scss',
35
36             'css/social/shelf_tags.css',
37             'css/ui-lightness/jquery-ui-1.8.16.custom.css',
38
39             'css/annoy.css',
40         ],
41         'output_filename': 'css/compressed/all.css',
42     },
43     'ie': {
44         'source_filenames': [
45             'css/ie.css',
46         ],
47         'output_filename': 'css/compressed/ie.css',
48     },
49     'book': {
50         'source_filenames': [
51             'css/master.book.css',
52
53             'css/annoy.css',
54         ],
55         'output_filename': 'css/compressed/book.css',
56     },
57     'player': {
58         'source_filenames': [
59             'jplayer/jplayer.blue.monday.css', 
60             'player/player.css', 
61         ],
62         'output_filename': 'css/compressed/player.css',
63     },
64     'simple': {
65         'source_filenames': ('css/simple.css',),
66         'output_filename': 'css/compressed/simple.css',
67     },
68 }
69
70 PIPELINE_JS = {
71     'base': {
72         'source_filenames': (
73             'js/jquery.cycle.min.js',
74             'js/jquery.jqmodal.js',
75             'js/jquery.form.js',
76             'js/jquery.countdown.js', 'js/jquery.countdown-pl.js',
77             'js/jquery.countdown-de.js', 'js/jquery.countdown-uk.js',
78             'js/jquery.countdown-es.js', 'js/jquery.countdown-lt.js',
79             'js/jquery.countdown-ru.js', 'js/jquery.countdown-fr.js',
80
81             'js/jquery-ui-1.8.16.custom.min.js',
82
83             'js/locale.js',
84             'js/dialogs.js',
85             'js/base.js',
86             'pdcounter/pdcounter.js',
87             'sponsors/js/sponsors.js',
88             'player/openplayer.js',
89             'js/search.js',
90
91             'js/annoy.js',
92             ),
93         'output_filename': 'js/base.min.js',
94     },
95     'player': {
96         'source_filenames': [
97             'jplayer/jquery.jplayer.min.js', 
98             'jplayer/jplayer.playlist.min.js', 
99             'player/player.js', 
100         ],
101         'output_filename': 'js/player.min.js',
102     },
103     'book': {
104         'source_filenames': [
105             'js/jquery.eventdelegation.js',
106             'js/jquery.scrollto.js',
107             'js/jquery.highlightfade.js',
108             'js/book.js',
109             'player/openplayer.js',
110
111             'js/annoy.js',
112         ],
113         'output_filename': 'js/book.min.js',
114     },
115     'book_ie': {
116         'source_filenames': ('js/ierange-m2.js',),
117         'output_filename': 'js/book_ie.min.js',
118     }
119
120 }
121
122 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
123 PIPELINE_CSS_COMPRESSOR = None
124 PIPELINE_JS_COMPRESSOR = None
125
126 PIPELINE_COMPILERS = (
127     'pyscss_compiler.PySCSSCompiler',
128 )
129 PIPELINE_PYSCSS_BINARY = '/usr/bin/env pyscss'
130 PIPELINE_PYSCSS_ARGUMENTS = ''