Questions tagged [whitenoise]

Wiki: In signal processing, white noise is a random signal having equal intensity at different frequencies, giving it a constant power spectral density.

125 questions
25
votes
2 answers

Django whitenoise drawback

There are many article describing the pros of using whitenoise instead of other configuration for serving static files. But the information about it's cons is kind of hard to find Is there any cons or drawbacks of using whitenoise for serving static…
hashlash
  • 897
  • 8
  • 19
14
votes
3 answers

Django Whitenoise 500 server error in non debug mode

I am using django in my local machine. In order to serve the static files I used WhiteNoise along with it. When DEBUG = True all static files are correctly served. But when I changed DEBUG = False and set ALLOWED_HOSTS = ['*'] I'm getting 500 server…
8
votes
1 answer

whitenoise.storage.MissingFileError: The file 'ecommerce/fonts/icofont.eot

I am trying to deploy my application on Heroku. It was uploaded successfully before, however, I made some changes and I tried re-uploading but it hasn't been responding since then. I keep getting this error: whitenoise.storage.MissingFileError: The…
Jumoke
  • 81
  • 1
  • 3
7
votes
1 answer

How to deploy a Django + Whitenoise application using gunicorn?

I am using Whitenoise to serve static files in my Django app. I am NOT using Nginx. I plan to use Whitenoise behind a CDN like Cloudfront in the future. See Whitenoise FAQs. I have been looking for deployment instructions, which handle these…
GunnerFan
  • 3,576
  • 3
  • 25
  • 38
6
votes
4 answers

Django doesn't load static files ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)

is my first app in Django and I am trying to prepare my Django (2.0) application for production, but I am unable to make the static files load properly using WhiteNoise I keep having all the time the next error in my log ValueError("Missing…
6
votes
0 answers

Delete/Clear staticfiles cache in whitenoise

I cant seem to find how to refresh the whitenoise static files cache. It has been giving me a problem. Which has persisted even when I removed the specific file causing the problem. The Manifest is still referring to a missing removed staticfile. I…
unlockme
  • 3,897
  • 3
  • 28
  • 42
6
votes
3 answers

Whitenoise giving errors on jquery-ui.css when doing collectstatic

I'm trying to install the jquery-ui-dist package, and when I run collectstatic, whitenoise seems to have trouble when a url is inside quotations in a stylesheet. The error I get is: MissingFileError: The file…
PoDuck
  • 1,381
  • 15
  • 38
5
votes
1 answer

Does whitenoise really require collectstatic?

I'm exploring using whitenoise to serve static files in a Django application that's packaged in a Docker container. In the documentation it says: As part of deploying your application you’ll need to run ./manage.py collectstatic to put all your…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
4
votes
3 answers

How to server favicon.ico with Django and Whitenoise

I use whitenoise for static files and it works fine. But how can I serve the /favicon.ico file? There is a setting called WHITENOISE_ROOT, but I don't understand how to use it. I would like to keep my nginx config simple and serve all files via…
guettli
  • 25,042
  • 81
  • 346
  • 663
4
votes
2 answers

Django Whitenoise with compressed staticfiles

I'm not able to get my django project to run with whitenoise and compressed staticfiles (including libsass). In links below, I read that it's only possible by offline compression of needed staticfiles. But when I started up the docker container,…
Henhuy
  • 1,034
  • 1
  • 13
  • 23
4
votes
1 answer

Django: Whitenoise not working in production with debug false

I have a Django app with whitenoise for static files. But when I test the app with Google Lighthouse I get asked to enable text compression for my static .js and .css files. I read a lot of related posts but couldn´t find an answer. I also followed…
Francisco Ghelfi
  • 872
  • 1
  • 11
  • 34
4
votes
2 answers

Should Whitenoise auto-compress static files? How?

I recently enabled Whitenoise for my Django project that will run on Heroku. I want Whitenoise to compress my static files automatically, as would seem to be possible from this part of the…
Teddy Ward
  • 450
  • 3
  • 16
3
votes
2 answers

Unable to run collectstatic , "references a file which could not be found: js/canvas-to-blob.min.js.map"

I'm trying to deploy a django react application on heroku , which uses whitenoise to handle staticfiles and cloudinary to handle media files , but when i try to run python manage.py collectstatic it returns an error 'js\canvas-to-blob.min.js'…
Dexter
  • 33
  • 5
3
votes
2 answers

ValueError: Missing staticfiles manifest entry on Heroku with Docker, django-pipeline, whitenoise

I am trying to deploy a Django project on Heroku using Docker, django-pipeline, and whitenoise. The container builds successfully, and I see that collectstatic generates the expected files inside container-name/static. However, upon visiting any…
Nathan_James
  • 139
  • 2
  • 9
3
votes
2 answers

Django Heroku not serving static files when Debug=False

I'm hosting my Django application on Heroku and using whitenoise to handle serving static files. Following is content of settings.py DEBUG = False ALLOWED_HOSTS += [ 'example.com', ] MIDDLEWARE = [ …
Anuj TBE
  • 9,198
  • 27
  • 136
  • 285
1
2 3
8 9