proper sorting of pictures in gallery view
[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             'funding/funding.scss',
34             'polls/polls.scss',
35             'css/form.scss',
36
37             'css/social/shelf_tags.css',
38             'css/ui-lightness/jquery-ui-1.8.16.custom.css',
39         ],
40         'output_filename': 'css/compressed/all.css',
41     },
42     'ie': {
43         'source_filenames': [
44             'css/ie.css',
45         ],
46         'output_filename': 'css/compressed/ie.css',
47     },
48     'book': {
49         'source_filenames': [
50             'css/master.book.css',
51         ],
52         'output_filename': 'css/compressed/book.css',
53     },
54     'picture': {
55         'source_filenames': [
56             'css/master.book.css',
57             'css/master.picture.css',
58         ],
59         'output_filename': 'css/compressed/picture.css',
60     },
61     'player': {
62         'source_filenames': [
63             'jplayer/jplayer.blue.monday.css', 
64             'player/player.css', 
65         ],
66         'output_filename': 'css/compressed/player.css',
67     },
68     'simple': {
69         'source_filenames': ('css/simple.css',),
70         'output_filename': 'css/compressed/simple.css',
71     },
72 }
73
74 PIPELINE_JS = {
75     'base': {
76         'source_filenames': (
77             'js/jquery.cycle.min.js',
78             'js/jquery.jqmodal.js',
79             'js/jquery.form.js',
80             'js/jquery.countdown.js', 'js/jquery.countdown-pl.js',
81             'js/jquery.countdown-de.js', 'js/jquery.countdown-uk.js',
82             'js/jquery.countdown-es.js', 'js/jquery.countdown-lt.js',
83             'js/jquery.countdown-ru.js', 'js/jquery.countdown-fr.js',
84
85             'js/jquery-ui-1.8.16.custom.min.js',
86
87             'js/locale.js',
88             'js/dialogs.js',
89             'js/base.js',
90             'pdcounter/pdcounter.js',
91             'sponsors/js/sponsors.js',
92             'player/openplayer.js',
93             'js/search.js',
94             'funding/funding.js',
95             ),
96         'output_filename': 'js/base.min.js',
97     },
98     'player': {
99         'source_filenames': [
100             'jplayer/jquery.jplayer.min.js', 
101             'jplayer/jplayer.playlist.min.js', 
102             'player/player.js', 
103         ],
104         'output_filename': 'js/player.min.js',
105     },
106     'book': {
107         'source_filenames': [
108             'js/jquery.eventdelegation.js',
109             'js/jquery.scrollto.js',
110             'js/jquery.highlightfade.js',
111             'js/book.js',
112             'js/picture.js',
113             'js/raphael-min.js',
114             'player/openplayer.js',
115             'js/progressSpin.min.js',
116         ],
117         'output_filename': 'js/book.min.js',
118     },
119     'book_ie': {
120         'source_filenames': ('js/ierange-m2.js',),
121         'output_filename': 'js/book_ie.min.js',
122     }
123
124 }
125
126 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
127 PIPELINE_CSS_COMPRESSOR = None
128 PIPELINE_JS_COMPRESSOR = None
129
130 PIPELINE_COMPILERS = (
131     'pyscss_compiler.PySCSSCompiler',
132 )
133 PIPELINE_PYSCSS_BINARY = '/usr/bin/env /home/staging/wolnelektury.pl/ve/bin/pyscss'
134 PIPELINE_PYSCSS_ARGUMENTS = ''