Move to Django 1.5, reorg settings.
[fnp-django-template.git] / project_name / settings / static.py
1 from os import path
2
3
4 MEDIA_ROOT = path.join(PROJECT_DIR, 'media/')
5 MEDIA_URL = '/media/'
6 STATIC_ROOT = path.join(PROJECT_DIR, 'static/')
7 STATIC_URL = '/static/'
8
9 STATICFILES_FINDERS = (
10     'django.contrib.staticfiles.finders.FileSystemFinder',
11     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
12 #    'django.contrib.staticfiles.finders.DefaultStorageFinder',
13 )
14
15 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
16 PIPELINE_CSS_COMPRESSOR = None
17 PIPELINE_JS_COMPRESSOR = None
18 PIPELINE_CSS = {
19     'base': {
20         'source_filenames': (
21           'css/base.scss',
22         ),
23         'output_filename': 'compressed/base.css',
24     },
25 }
26 PIPELINE_JS = {
27     'base': {
28         'source_filenames': (
29         ),
30         'output_filename': 'compressed/base.js',
31     },
32 }
33
34 PIPELINE_COMPILERS = (
35   'pipeline.compilers.sass.SASSCompiler',
36 )
37
38 PIPELINE_STORAGE = 'pipeline.storage.PipelineFinderStorage'