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
3
votes
2 answers

Whitenoise to serve static files locally

As described in their docs here, I am configured my application to serve static files locally. The only problem I am facing is that I am unable to determine if it is django or whitenoise which is serving static files? Steps which I followed: pip…
inquilabee
  • 713
  • 1
  • 11
  • 23
3
votes
1 answer

ImportError: Module "whitenoise.middleware" does not define a "WhiteNoiseMiddleWare" attribute/class

In my django app white noise is acted on in the following ways: MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleWare', and STATICFILES_STORAGE =…
user9487981
2
votes
0 answers

How to preprocess data for Kalman filter

I am reading through a Kalman filter techniques and thinking about how to use them but I am not sure if I understand the whole process in using the measured data in Kalman data-step. Lets assume that you have accelerometer and you want to estimate…
Marxwil
  • 21
  • 3
2
votes
1 answer

whitenoise.storage.MissingFileError: The JS file 'drf-yasg\redoc\redoc.min.js' references a file which could not be found

I tried collecting static files on an API project I am working with Django/Django REST Framework and I got this error on my console. What could be the cause of the error? raise processed whitenoise.storage.MissingFileError: The file…
2
votes
2 answers

In Django, whitenoise do not show static files?

I am trying to show static files while debug=false.I am using whitenoise library but still website don't show the static files and media files. My settings.py file like this: MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', …
cvsrt
  • 357
  • 4
  • 19
2
votes
1 answer

Why serving static files are an issue in Python apps

I don't seem to understand the issue with serving static files in Python apps, for example Django. Now I am reading a documentation of WhiteNoise and first question is why it was developed in the first place? I mean what problem it solves? Why we…
a298b112
  • 83
  • 1
  • 8
2
votes
1 answer

Collect Static Error when trying to deploy Django application to heroku

I have put a decent amount of work into my first Django project and I wanted to host it on heroku. I have seen some proposed solutions to this error elsewhere but everything I've tried doesn't seem to fix the error.I've been trying to fix this for 6…
rpc543
  • 31
  • 3
2
votes
1 answer

Django on Heroku - missing staticfiles manifest.json file

I am trying to start Django on Heroku. I looked around Stack Overflow, I tried different things, but I cannot figure it out. It looks similar to all the questions related to staticfiles problem on Django, unfortunately I don't know where the problem…
Sliwa
  • 61
  • 8
2
votes
1 answer

Can not able to serve media files on cpanel django

I build a website with Django and now hosting it. I used Whitenoise to serve images but only static ones shows up when debug is False. How can I serve media files uploaded by users too? Since it is my first development with Django detailed help…
2
votes
1 answer

Django Error Module 'Whitenoise' not found

I'm using whitenoise to deploy static files in prod, so according to whitenoise's docs, it's recommended to use it in development too. So I followed the documentation and added the following to my settings.py file: INSTALLED_APPS = [ …
cclloyd
  • 8,171
  • 16
  • 57
  • 104
2
votes
4 answers

Django ValueError: Missing staticfiles manifest entry, but the manifest appears to show the entry

On a Django 1.11 app deployed to Heroku. When loading the root URL / (and I presume when Django gets to {% static 'angular/angular.min.js' %} in the homepage.html template) I get the following error: ValueError: Missing staticfiles manifest entry…
jchung
  • 903
  • 1
  • 11
  • 23
2
votes
1 answer

Add white-noise on image based on SNR

I would like to add white noise to an original image with different SNR levels, but not sure how to do. The original image is (256, 128) I am using acoustics package to add noise. original = cv2.imread(path) white =…
sealpuppy
  • 615
  • 4
  • 12
  • 27
1
vote
0 answers

Refused to execute script ... MIME type ('text/html') is not executable, and strict MIME type checking is enabled

I'm currently in the process of deploying (read: struggling) my: Django (backend) ReactJS/Redux (frontend) django-ninja (api) whitenoise (backend - staticfiles) app to Heroku. However, I keep getting this error message whenever I launch the app and…
jpwyse
  • 11
  • 2
1
vote
3 answers

Django whitenoise is fine for production but gives 404 for debug mode

I use django white noise and it works when DEBUG = False; however when setting DEBUG = True, I cannot load the image anymore and get 404 response. Note: I am aware of hard-refresh. I already used static collection and django migrations. Here is my…
ar2015
  • 5,558
  • 8
  • 53
  • 110
1
vote
1 answer

Heroku with whitenoise not serving django staticfiles

How do I get heroku to serve my static files on my django project? Ok, on a push to heroku, I get this message rlated to staticfiles: $ python manage.py collectstatic --noinput remote: 130 static files copied to…
amchugh89
  • 1,276
  • 1
  • 14
  • 33
1
2
3
8 9