2 from .paths import PROJECT_DIR
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/')
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
21 # styles both for mobile and for big screen
23 'css/jquery.countdown.css',
25 'sponsors/css/sponsors.css',
27 'uni_form/uni-form.css',
28 'uni_form/default.uni-form.css',
30 'css/ui-lightness/jquery-ui-1.8.16.custom.css',
34 'output_filename': 'css/compressed/main.css',
38 'css/master.book.css',
40 'output_filename': 'css/compressed/book.css',
44 'scss/book_text.scss',
47 'css/master.picture.css',
49 'output_filename': 'css/compressed/book_text.css',
53 'css/master.book.css',
54 'css/master.picture.css',
56 'output_filename': 'css/compressed/picture.css',
60 'jplayer/jplayer.blue.monday.css',
63 'output_filename': 'css/compressed/player.css',
66 'source_filenames': ('css/simple.css',),
67 'output_filename': 'css/compressed/simple.css',
70 'source_filenames': ('scss/widget.scss',),
71 'output_filename': 'css/compressed/widget.css',
78 'js/contrib/jquery.cycle.min.js',
79 'js/contrib/jquery.jqmodal.js',
80 'js/contrib/jquery.form.js',
81 'js/contrib/jquery.countdown.js', 'js/contrib/jquery.countdown-pl.js',
82 'js/contrib/jquery.countdown-de.js', 'js/contrib/jquery.countdown-uk.js',
83 'js/contrib/jquery.countdown-es.js', 'js/contrib/jquery.countdown-lt.js',
84 'js/contrib/jquery.countdown-ru.js', 'js/contrib/jquery.countdown-fr.js',
86 'js/contrib/jquery-ui-1.8.16.custom.min.js',
91 'pdcounter/pdcounter.js',
92 'sponsors/js/sponsors.js',
93 'player/openplayer.js',
97 'uni_form/uni-form.js',
99 'output_filename': 'js/base.min.js',
102 'source_filenames': [
103 'jplayer/jquery.jplayer.min.js',
104 'jplayer/jplayer.playlist.min.js',
107 'output_filename': 'js/player.min.js',
110 'source_filenames': [
111 'js/contrib/jquery.eventdelegation.js',
112 'js/contrib/jquery.scrollto.js',
113 'js/contrib/jquery.highlightfade.js',
114 'js/book_text/other.js',
117 'js/contrib/raphael-min.js',
118 'js/contrib/progressSpin.min.js',
121 'output_filename': 'js/book.min.js',
124 'source_filenames': [
125 'js/contrib/jquery.form.js',
126 'js/contrib/jquery.jqmodal.js',
131 'js/contrib/jquery.highlightfade.js',
132 'js/contrib/raphael-min.js',
133 'player/openplayer.js',
134 'js/contrib/progressSpin.min.js',
137 'output_filename': 'js/book_text.js',
140 'source_filenames': ('js/contrib/ierange-m2.js',),
141 'output_filename': 'js/book_ie.min.js',
144 'source_filenames': (
145 'js/contrib/jquery.js',
146 'js/contrib/jquery-ui-1.8.16.custom.min.js',
150 'output_filename': 'js/widget.min.js',
154 STATICFILES_STORAGE = 'fnpdjango.utils.pipeline_storage.GzipPipelineCachedStorage'
155 PIPELINE_CSS_COMPRESSOR = None
156 PIPELINE_JS_COMPRESSOR = None
158 PIPELINE_COMPILERS = (
159 'pipeline.compilers.sass.SASSCompiler',
160 # We could probably use PySCSS instead,
161 # but they have some serious problems, like:
162 # https://github.com/Kronuz/pyScss/issues/166 (empty list syntax)
163 # https://github.com/Kronuz/pyScss/issues/258 (bad @media order)
164 #'pyscss_compiler.PySCSSCompiler',
166 #PIPELINE_PYSCSS_BINARY = '/usr/bin/env pyscss'
167 #PIPELINE_PYSCSS_ARGUMENTS = ''