<commit_before>import os
from .base import BASE_DIR, PROJECT_BASE_DIR


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.9/howto/static-files/

STATIC_URL = '/static/'

STATIC_ROOT = os.path.join(PROJECT_BASE_DIR, "dist", "static")


# PIPELINE #

# Location of collect staticfiles
STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'

# config where is staticfiles
STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
    'pipeline.finders.PipelineFinder',
)

PIPELINE = {
    'STYLESHEETS': {
        'bookconnect': {
            'source_filenames': (
                'css/application.css',
            ),
            'output_filename': 'css/bookconnect.css',
        },
    },
    'JAVASCRIPT': {
        'csrftoken': {
            'source_filenames': (
                'js/csrf_token.js',
            ),
            'output_filename': 'js/csrf_token.js',
        },
        'items': {
            'source_filenames': (
                'js/booksale.js',
                'js/detail.js',
            ),
            'output_filename': 'js/items.js',
        },
        'users': {
            'source_filenames': (
                'js/users/aftersocial.js',
                'js/users/joinus.js',
            ),
            'output_filename': 'js/users/users.js',
        },
    }
}


PIPELINE['CSS_COMPRESSOR'] = 'pipeline.compressors.yuglify.YuglifyCompressor'<commit_msg>update : modify pipeline output_file seperate staticfile을 두개 이상 합치지 않는다.<commit_after>import os
from .base import BASE_DIR, PROJECT_BASE_DIR


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.9/howto/static-files/

STATIC_URL = '/static/'

STATIC_ROOT = os.path.join(PROJECT_BASE_DIR, "dist", "static")


# PIPELINE #

# Location of collect staticfiles
STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'

# config where is staticfiles
STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
    'pipeline.finders.PipelineFinder',
)

PIPELINE = {
    'STYLESHEETS': {
        'bookconnect': {
            'source_filenames': (
                'css/application.css',
            ),
            'output_filename': 'css/bookconnect.css',
        },
    },
    'JAVASCRIPT': {
        'csrftoken': {
            'source_filenames': (
                'js/csrf_token.js',
            ),
            'output_filename': 'js/csrf_token.js',
        },
        'booksale': {
            'source_filenames': (
                'js/booksale.js',
            ),
            'output_filename': 'js/booksale.js',
        },
        'detail': {
            'source_filenames': (
                'js/detail.js',
            ),
            'output_filename': 'js/detail.js',
        },
        'aftersocial': {
            'source_filenames': (
                'js/users/aftersocial.js',
            ),
            'output_filename': 'js/users/aftersocial.js',
        },
        'joinus': {
            'source_filenames': (
                'js/users/joinus.js',
            ),
            'output_filename': 'js/users/joinus.js',
        },
    }
}


PIPELINE['CSS_COMPRESSOR'] = 'pipeline.compressors.yuglify.YuglifyCompressor'
{'fraction_non_alphanumeric': 0.1365401852405139, 'fraction_numerical': 0.0011951000896325067, 'mean_word_length': 1.981300089047195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6421085', 'n_tokens_mistral': 1109, 'n_tokens_neox': 1086, 'n_words': 138}