2 from .paths import VAR_DIR
4 # Absolute path to the directory that holds media.
5 # Example: "/home/media/media.lawrence.com/"
6 MEDIA_ROOT = path.join(VAR_DIR, 'media/')
7 STATIC_ROOT = path.join(VAR_DIR, 'static/')
8 SEARCH_INDEX = path.join(VAR_DIR, 'search_index/')
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/"
14 STATIC_URL = '/static/'
16 # CSS and JavaScript file groups
19 'PIPELINE_ENABLED': False,
22 # styles both for mobile and for big screen
24 'css/jquery.countdown.css',
25 'jplayer/jplayer.blue.monday.css',
27 'sponsors/css/sponsors.css',
29 'uni_form/uni-form.css',
30 'uni_form/default.uni-form.css',
32 'css/ui-lightness/jquery-ui-1.8.16.custom.css',
36 'output_filename': 'css/compressed/main.css',
40 'css/master.book.css',
42 'output_filename': 'css/compressed/book.css',
46 'scss/book_text.scss',
49 'css/master.picture.css',
51 'output_filename': 'css/compressed/book_text.css',
55 'css/master.book.css',
56 'css/master.picture.css',
58 'output_filename': 'css/compressed/picture.css',
62 'jplayer/jplayer.blue.monday.css',
65 'output_filename': 'css/compressed/player.css',
68 'source_filenames': ('css/simple.css',),
69 'output_filename': 'css/compressed/simple.css',
72 'source_filenames': ('scss/widget.scss',),
73 'output_filename': 'css/compressed/widget.css',
79 'js/contrib/jquery.cycle.min.js',
80 'js/contrib/jquery.jqmodal.js',
81 'js/contrib/jquery.form.js',
82 'js/contrib/jquery.paging.min.js',
83 'js/contrib/jquery.countdown.js', 'js/contrib/jquery.countdown-pl.js',
84 'js/contrib/jquery.countdown-de.js', 'js/contrib/jquery.countdown-uk.js',
85 'js/contrib/jquery.countdown-es.js', 'js/contrib/jquery.countdown-lt.js',
86 'js/contrib/jquery.countdown-ru.js', 'js/contrib/jquery.countdown-fr.js',
88 'js/contrib/jquery-ui-1.8.16.custom.min.js',
90 'jplayer/jquery.jplayer.min.js',
91 'jplayer/jplayer.playlist.min.js',
97 'pdcounter/pdcounter.js',
98 'sponsors/js/sponsors.js',
99 'player/openplayer.js',
101 'funding/funding.js',
103 'uni_form/uni-form.js',
105 'output_filename': 'js/base.min.js',
108 'source_filenames': [
109 'jplayer/jquery.jplayer.min.js',
110 'jplayer/jplayer.playlist.min.js',
113 'output_filename': 'js/player.min.js',
116 'source_filenames': [
117 'js/contrib/jquery.eventdelegation.js',
118 'js/contrib/jquery.scrollto.js',
119 'js/contrib/jquery.highlightfade.js',
120 'js/book_text/other.js',
123 'js/contrib/raphael-min.js',
124 'js/contrib/progressSpin.min.js',
127 'output_filename': 'js/book.min.js',
130 'source_filenames': [
131 'js/contrib/jquery.form.js',
132 'js/contrib/jquery.jqmodal.js',
137 'js/contrib/jquery.highlightfade.js',
138 'js/contrib/raphael-min.js',
139 'player/openplayer.js',
140 'js/contrib/progressSpin.min.js',
143 'output_filename': 'js/book_text.js',
146 'source_filenames': ('js/contrib/ierange-m2.js',),
147 'output_filename': 'js/book_ie.min.js',
150 'source_filenames': (
151 'js/contrib/jquery.js',
152 'js/contrib/jquery-ui-1.8.16.custom.min.js',
156 'output_filename': 'js/widget.min.js',
159 'CSS_COMPRESSOR': None,
160 'JS_COMPRESSOR': 'pipeline.compressors.jsmin.JSMinCompressor',
162 'pipeline.compilers.sass.SASSCompiler',
163 # We could probably use PySCSS instead,
164 # but they have some serious problems, like:
165 # https://github.com/Kronuz/pyScss/issues/166 (empty list syntax)
166 # https://github.com/Kronuz/pyScss/issues/258 (bad @media order)
167 #'pyscss_compiler.PySCSSCompiler',
171 #~ STATICFILES_STORAGE = 'fnpdjango.utils.pipeline_storage.GzipPipelineCachedStorage'
173 #PIPELINE_PYSCSS_BINARY = '/usr/bin/env pyscss'
174 #PIPELINE_PYSCSS_ARGUMENTS = ''
177 STATICFILES_FINDERS = [
178 'django.contrib.staticfiles.finders.FileSystemFinder',
179 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
180 'pipeline.finders.PipelineFinder',