Open millerthegorilla opened 2 years ago
Hi @millerthegorilla,
To be able to help you would it be possible to provide:
settings.py
Hi, I hope this is ok.
django-pipeline configuration in your settings.py
#django-pipeline
STATICFILES_STORAGE = 'pipeline.storage.PipelineManifestStorage'
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'pipeline.finders.PipelineFinder',
)
PIPELINE = {
'PIPELINE_ENABLED': True,
'JS_COMPRESSOR': 'pipeline.compressors.jsmin.JSMinCompressor',
'JAVASCRIPT': {
'django_artisan_carousel': {
'source_filenames': (
'django_artisan/js/carousel.js',
),
'output_filename': 'django_artisan/js/carousel_min.js',
},
'django_artisan_image_loader': {
'source_filenames': (
'django_artisan/js/imageLoader.js',
),
'output_filename': 'django_artisan/js/image_loader_min.js',
},
'django_forum': {
'source_filenames': (
'django_forum/js/*.js',
),
'output_filename': 'js/django_forum.js',
}
}
}
the tag(s) generated in your template
<script type="text/javascript" src="/static/django_artisan/js/carousel_min.js" charset="utf-8"></script>
your directory listing of your static folder(s)
ls django_artisan/js
anchor.4c8e394e5e92.js carousel.js imageLoader.1a8ddea2a496.js image_loader_min.js
anchor.js carousel_min.f06309f5d68d.js imageLoader.js profileUpdate.18e570e6bd98.js
carousel.a4a95be6644f.js carousel_min.js image_loader_min.775c48e9342f.js profileUpdate.js
Thanks.
@TheBuky can you suggest what I should do next? I have just bumped all my pip dependencies to the latest as I test my project with django-4.0 and I am having to use a fork of django-pipeline because of this issue. I would much rather use the jazzband than my fork.
I can confirm that the fix for #699 works for me.
Sorry @millerthegorilla, I'm comeback after a while.
So you remove the not
line 16 inside pipeline/finders.py
? (I have to get back entirely in the code to understand and see if there are no edge effects)
Can we try to create a use case and his related unit test to be sure that kind of problem will not appear again?
Thanks for getting back to me. I will check the code either today or tomorrow and confirm that I still have the same issue.
Had a quick peek, and I am still using the form, but it looks like a direct copy of the jazzband repo, so I will look more closely when I am next at the code.
Hi, I am using django-pipeline with django 3.2. Although the assets are being minified and output to the correct location, the template tag generated script tag wrapped location is generating a 404.
After reading #699 I edited the pipeline/finders.py file to always return a call to the superclass, and the 404 errors disappeared.
Is there something I am misconfiguring (I copied the docs word for word)?