Merge branch 'custompdf'
[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 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
17 # trailing slash.
18 # Examples: "http://foo.com/media/", "/media/".
19 ADMIN_MEDIA_PREFIX = '/admin-media/'
20
21 # CSS and JavaScript file groups
22 COMPRESS_CSS = {
23     'all': {
24         #'source_filenames': ('css/master.css', 'css/jquery.autocomplete.css', 'css/master.plain.css', 'css/facelist_2-0.css',),
25         'source_filenames': [
26             'css/jquery.countdown.css', 
27
28             'css/base.css',
29             'css/cite.css',
30             'css/header.css',
31             'css/main_page.css',
32             'css/dialogs.css',
33             'css/picture_box.css',
34             'css/book_box.css',
35             'css/catalogue.css',
36             'css/sponsors.css',
37             'css/logo.css',
38             'css/auth.css',
39
40             'css/social/shelf_tags.css',
41             'css/ui-lightness/jquery-ui-1.8.16.custom.css',
42         ],
43         'output_filename': 'css/all.min?.css',
44     },
45     'screen': {
46         'source_filenames': ['css/screen.css'],
47         'output_filename': 'css/screen.min?.css',
48         'extra_context': {
49             'media': 'screen and (min-width: 800px)',
50         },
51     },
52     'ie': {
53         'source_filenames': [
54             'css/ie.css',
55         ],
56         'output_filename': 'css/ie.min?.css',
57     },
58     'book': {
59         'source_filenames': [
60             'css/logo.css',
61             'css/master.book.css',
62         ],
63         'output_filename': 'css/book.min?.css',
64     },
65     'player': {
66         'source_filenames': [
67             'jplayer/jplayer.blue.monday.css', 
68             'css/player.css', 
69         ],
70         'output_filename': 'css/player.min?.css',
71     },
72     'simple': {
73         'source_filenames': ('css/simple.css',),
74         'output_filename': 'css/simple.min?.css',
75     },
76 }
77
78 COMPRESS_JS = {
79     'base': {
80         'source_filenames': (
81             'js/jquery.cycle.min.js',
82             'js/jquery.jqmodal.js',
83             'js/jquery.form.js',
84             'js/jquery.countdown.js', 'js/jquery.countdown-pl.js',
85             'js/jquery.countdown-de.js', 'js/jquery.countdown-uk.js',
86             'js/jquery.countdown-es.js', 'js/jquery.countdown-lt.js',
87             'js/jquery.countdown-ru.js', 'js/jquery.countdown-fr.js',
88
89             'js/jquery-ui-1.8.16.custom.min.js',
90
91             'js/locale.js',
92             'js/dialogs.js',
93             'js/sponsors.js',
94             'js/base.js',
95             'js/pdcounter.js',
96
97             'js/search.js',
98             ),
99         'output_filename': 'js/base?.min.js',
100     },
101     'player': {
102         'source_filenames': [
103             'jplayer/jquery.jplayer.min.js', 
104             'jplayer/jplayer.playlist.min.js', 
105             'js/player.js', 
106         ],
107         'output_filename': 'js/player.min?.js',
108     },
109     'book': {
110         'source_filenames': ('js/jquery.eventdelegation.js', 'js/jquery.scrollto.js', 'js/jquery.highlightfade.js', 'js/book.js',),
111         'output_filename': 'js/book?.min.js',
112     },
113     'book_ie': {
114         'source_filenames': ('js/ierange-m2.js',),
115         'output_filename': 'js/book_ie?.min.js',
116     }
117
118 }
119
120 COMPRESS_VERSION = True
121 COMPRESS_CSS_FILTERS = None