Add lists of recent audiobooks and DAISY files.
[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 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
34             'css/social/shelf_tags.css',
35             'css/ui-lightness/jquery-ui-1.8.16.custom.css',
36         ],
37         'output_filename': 'css/compressed/all.css',
38     },
39     'ie': {
40         'source_filenames': [
41             'css/ie.css',
42         ],
43         'output_filename': 'css/compressed/ie.css',
44     },
45     'book': {
46         'source_filenames': [
47             'css/master.book.css',
48         ],
49         'output_filename': 'css/compressed/book.css',
50     },
51     'player': {
52         'source_filenames': [
53             'jplayer/jplayer.blue.monday.css', 
54             'player/player.css', 
55         ],
56         'output_filename': 'css/compressed/player.css',
57     },
58     'simple': {
59         'source_filenames': ('css/simple.css',),
60         'output_filename': 'css/compressed/simple.css',
61     },
62 }
63
64 PIPELINE_JS = {
65     'base': {
66         'source_filenames': (
67             'js/jquery.cycle.min.js',
68             'js/jquery.jqmodal.js',
69             'js/jquery.form.js',
70             'js/jquery.countdown.js', 'js/jquery.countdown-pl.js',
71             'js/jquery.countdown-de.js', 'js/jquery.countdown-uk.js',
72             'js/jquery.countdown-es.js', 'js/jquery.countdown-lt.js',
73             'js/jquery.countdown-ru.js', 'js/jquery.countdown-fr.js',
74
75             'js/jquery-ui-1.8.16.custom.min.js',
76
77             'js/locale.js',
78             'js/dialogs.js',
79             'js/base.js',
80             'pdcounter/pdcounter.js',
81             'sponsors/js/sponsors.js',
82             'player/openplayer.js',
83             'js/search.js',
84             ),
85         'output_filename': 'js/base.min.js',
86     },
87     'player': {
88         'source_filenames': [
89             'jplayer/jquery.jplayer.min.js', 
90             'jplayer/jplayer.playlist.min.js', 
91             'player/player.js', 
92         ],
93         'output_filename': 'js/player.min.js',
94     },
95     'book': {
96         'source_filenames': [
97             'js/jquery.eventdelegation.js',
98             'js/jquery.scrollto.js',
99             'js/jquery.highlightfade.js',
100             'js/book.js',
101             'player/openplayer.js',
102         ],
103         'output_filename': 'js/book.min.js',
104     },
105     'book_ie': {
106         'source_filenames': ('js/ierange-m2.js',),
107         'output_filename': 'js/book_ie.min.js',
108     }
109
110 }
111
112 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
113 PIPELINE_CSS_COMPRESSOR = None
114 PIPELINE_JS_COMPRESSOR = None