Open GuganVignesh opened 6 years ago
So I enabled the loggers for pipeline and found the following logs saying :
System check identified no issues (0 silenced).
March 24, 2018 - 12:15:54
Django version 1.10.5, using settings 'colors.settings.local'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Package u'colors_a.css' is unknown. Check PIPELINE['STYLESHEETS'] in your settings.
Package u'colors_b.js' is unknown. Check PIPELINE['JAVASCRIPT'] in your settings.
Package u'colors_c.js' is unknown. Check PIPELINE['JAVASCRIPT'] in your settings.
[24/Mar/2018 12:15:57] "GET / HTTP/1.1" 200 21611
where my settings are :
# Django Pipeline
STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'pipeline.finders.PipelineFinder',
)
PIPELINE = dict()
PIPELINE = {
'PIPELINE_ENABLED': True,
'STYLESHEETS': {
'colors_a': {
'source_filenames': (
'css/bootstrap/bootstrap.min.css',
'css/colors/colors_footer.css',
'css/colors/colors.css',
'css/fonts/font_lato.css',
'css/fonts/font_montserrat.css',
'css/font-awesome/font-awesome.min.css',
'css/violet/login.css',
),
'output_filename': 'colors_a.css',
},
},
'JAVASCRIPT': {
'colors_b': {
'source_filenames': (
'js/bootstrap/bootstrap.min.js',
'js/bootstrap/npm.js',
'js/bootstrap/tooltip.js',
'js/jquery/jquery-3.1.1.min.js',
),
'output_filename': 'colors_b.js',
},
'colors_c': {
'source_filenames': (
'js/google/recaptcha-api.js',
),
'output_filename': 'colors_c.js',
},
},
}
PIPELINE['JS_COMPRESSOR'] = 'pipeline.compressors.jsmin.JSMinCompressor'
PIPELINE['CSSMIN_BINARY'] = 'cssmin'
PIPELINE['CSS_COMPRESSOR'] = 'pipeline.compressors.cssmin.CSSMinCompressor'
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
}
},
'handlers': {
'mail_admins': {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler'
},
'console':{
'level': 'DEBUG',
'class': 'logging.StreamHandler'
},
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
'pipeline': {
'handlers': ['console'],
'level': 'INFO'
},
}
}
@jazzband-bot any update on this ?
Im using the Django pipeline to render my templates. some how im getting something like below and the templates are not rendered properly.
Server Logs
Pipeline settings :
My template :
Rendered template : [
](url)
Original template :
Not able to get why this is happening !