Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
30 views

CSS Not Loading for Browsable APIs in Django with DRF Despite Whitenoise

I am working on a Django project utilizing Django Rest Framework for APIs. I've encountered an issue where the CSS is not loading for the browsable APIs. I am using Whitenoise to serve static files, ...
codezero's user avatar
  • 101
0 votes
1 answer
42 views

Uploaded media doesn't server in production mode without restarting django

I need to serve media in Django in production mode and it is very little need to serve telegram user photos in Django admin. so I know everything about Django it's not for serving files or media so ...
minttux's user avatar
  • 435
0 votes
1 answer
96 views

whitenoise module not found in production

Error: I ran into this error when trying to deploy my Django app using GAE using these instructions GAE for Django: ModuleNotFoundError: No module named 'whitenoise'. The error occurs when starting ...
Ledge's user avatar
  • 23
0 votes
0 answers
26 views

Matlab code to add white noise to a movie clip

I am coding to add white noise to a movie clip and save the new one. The following is the code, but it did not work. Actually, the sound is slowed, which does not match the video. The "...
TKw's user avatar
  • 1
0 votes
2 answers
197 views

Getting whitenoise.storage.MissingFileError: The file 'vendor/bootswatch/default/bootstrap.min.css.map' could not be found

When I am using whitenoise to host my static files, after entering the python manage.py collecstatic command I am getting this error: whitenoise.storage.MissingFileError: The file 'vendor/bootswatch/...
Azpect's user avatar
  • 85
0 votes
0 answers
110 views

Django static files Dokku

I am encountering an issue with Django and Whitenoise where my static files are not being served correctly, resulting in 404 errors and MIME checking errors. I have configured my config/settings.py ...
Mary's user avatar
  • 25
-1 votes
3 answers
532 views

Static files not loaded when deploy a django web page in vercel(with whitenoise)

when the project is deployed shows this error here is my settings.py: import os from pathlib import Path BASE_DIR = Path(__file__).resolve().parent.parent DEBUG = True ALLOWED_HOSTS = ['*'] ...
matheus dimon's user avatar
0 votes
0 answers
24 views

error (400) when putting whitenoise in django cpanel whit debug in false

I get a 400 error on the entire page when I put this in the settings.py: STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" If I have the debug set to true ...
Fausto Fernandez's user avatar
0 votes
2 answers
87 views

whitenoise dosen't seem to work in Django

I want to check my web app in DEBUG = False and use whitenoise to do the static stuff. I have followed documentation and different blog post, I have also used the tool before, but this time it just ...
unix nexo's user avatar
0 votes
1 answer
123 views

Upload images with Django and Whitenoise

i have just deployed a web using Django on Heroku with static files served by whitenoise. All the static files created before deploying works fine but if i want to upload new image (from both admin ...
Phúc Hoàng's user avatar
0 votes
1 answer
357 views

How to handle django static files for production

I am a newbie django developer and this is the django project i will be deploying. Everything works in development but I am been having issues in production. PS: I am using shared hosting for the ...
Adewale's user avatar
  • 23
0 votes
1 answer
202 views

Django/Wagtail static assets return 404 only when logged in but works logged out

After upgrading Wagtail and supporting packages, I'm having a strange problem where all the static assets (CSS, JS, fonts, etc..) return a 404 error when logged into the Wagtail admin, ie. the ...
tsyn's user avatar
  • 23
0 votes
1 answer
333 views

How to exclude media folder when deploying to railway

I have a django app hosted in railway, when I push the changes to github railway overrides the media folder as well and I lose all my images, is there a way to exclude the media folder from changing? (...
Hakim's user avatar
  • 11
0 votes
0 answers
77 views

Django ImageField shows wrong url

I developed an e-commerce project, and now I am in the production phase in my own domain. Everything works perfect in development server. I'm using white-noise for serving static files in production ...
bailofwZ's user avatar
  • 133
0 votes
1 answer
212 views

Why staticfiles aren't found when DEBUG=False (in production)?

This is django app and I am using DigitalOcean App platform for deploying my app. When I set DJANGO_DEBUG=True (in the enviroment veriables on DigitalOcean) all the static files are found by the ...
tzur's user avatar
  • 43
1 vote
0 answers
154 views

Azure - Django deployment Static Files

I try to deploy my django app to Azure App Services. I create App in Azure and deploy my app to Azure. But when i open app i can't see staticfiles (images). However I can see it in locally. By the wat ...
user avatar
0 votes
0 answers
162 views

How to serve user uploaded media files in Django Production without any using anything else as a service?

What is the best way to serve media files in Production without using S3 or FTP? Whitenoise doesn't support it. I'll have to serve some ZIP files that'll be created from a view. I can compromise ...
Tanjim Hudai's user avatar
0 votes
0 answers
72 views

Django static are not getting load on AWS using Nginx

i have a website build on Django. everything is working fine on local machine but the static file are not getting load on production. Django project is running fine on Debug=False I did install ...
Muhammad Kamal's user avatar
0 votes
1 answer
102 views

My images are not displaying the post.photo.url call on my cpanel hosting

Hello I just put my blog online on cpanel hosting. I managed the display with the whitenoise library of python. The static images work normally. But when I call the image from blogpost to display my ...
usrmetamask's user avatar
0 votes
3 answers
105 views

Static files are not getting loaded in Django

Static files are not getting loaded when running on server. I have tried the whitenoise library and referred to the Documentation (http://whitenoise.evans.io/en/stable/django.html) as well, but no ...
user19664934's user avatar
1 vote
0 answers
2k views

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 ...
jpwyse's user avatar
  • 11
2 votes
0 answers
177 views

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 ...
Marxwil's user avatar
  • 73
1 vote
3 answers
2k views

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 ...
ar2015's user avatar
  • 6,060
-1 votes
1 answer
197 views

SoX batch convert adding white noise

I'm trying to add white noise to hundreds of files. I find a command but don't know how to adapt it. There is a source folder with files and an empty destination folder. Could someone help me with the ...
b0h1's user avatar
  • 3
0 votes
0 answers
272 views

vb.net - draw rectangle filled with white noise on a image

I use following code to draw a rectangle on a image: Dim gr As Graphics = Graphics.FromImage(augImage) Dim rect As New Rectangle(xposLabel, yposLabel, w, h) gr.FillRectangle(Brushes.White, rect) ...
sharkyenergy's user avatar
  • 4,114
0 votes
1 answer
327 views

Static File Hosting, WhiteNoise not Updating - Django

I have a Django website in production and a while back I successfully hosted my static files using Whitenoise so I could use them in production. Now a few months later I want to add a new .png along ...
Russell Hertel's user avatar
0 votes
0 answers
15 views

Need help: whitenoise seems to be preventing a Django app running on heroku [duplicate]

Please point me to the right direction with a Django app that I am trying to put on Heroku. The app runs locally (both with python manage.py run server and heroku local), but doesn't run on heroku. It ...
YCode's user avatar
  • 1,242
0 votes
0 answers
117 views

Serving CHANGING static django files in production

I need to serve a static file that has a changing name. This works fine with DEBUG = True, but immediately breaks with DEBUG = False. I'm currently using Whitenoise to serve files in production, and ...
dontmindme's user avatar
0 votes
1 answer
109 views

How to get Django StaticFileStorage to 500 when Debug is True

I'm trying to get our Django app to throw 500s when an asset is not available - rather than somewhat silently throwing 404s. We want this so that our end-to-end tests catch an asset missing before it ...
JRJurman's user avatar
  • 1,688
0 votes
0 answers
658 views

Why does one of my static file is not found when deploying a Django app with Docker?

I am trying to do a django project and push it to Heroku. For now, I just try to make my container work locally. For my static files, I use Whitenoise. The problem I encounter is that my app work and ...
Barthélémy Déchanet's user avatar
0 votes
1 answer
3k views

Whitenoise Not Working when DEBUG = FALSE - Django - Hosting Static Files

I am running a Django website and it's about to go into production. I am now at the point where I need to set DEBUG = False in my settings.py file. I am getting the typical 500 errors because I have ...
Russell Hertel's user avatar
4 votes
2 answers
1k views

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 ...
Iyosayi's user avatar
  • 43
2 votes
1 answer
2k views

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....
Paul Okoli's user avatar
0 votes
3 answers
3k views

serving media files in Django for Production

I want to serve all types of media files in my Django Project I used Whitenoise to server static files and static files are working well but I'm having issues with serving images that are uploaded by ...
AsadMalik's user avatar
1 vote
1 answer
303 views

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 ...
amchugh89's user avatar
  • 1,296
0 votes
1 answer
1k views

Fail to serve static files in deployed Django app (Docker, gunicorn, whitenoise, Heroku)

I have built a Django REST API which serves JSON responses only. My problem is, in production (deployed on Heroku with debug=False) the app does not seem to serve relevant static files needed for the ...
Sven Gerlach's user avatar
2 votes
2 answers
8k views

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 = [ '...
cvsrt's user avatar
  • 387
3 votes
1 answer
466 views

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 ...
a298b112's user avatar
  • 111
2 votes
0 answers
375 views

Compressed CSS files generated by django-compressor/libsass are not served on the first launch of the server, but are served on subsequent launches

I'm working on a Django app for the first time and I had reached a stage where I was feeling comfortable with the app's functioning in the development environment. To deploy I had to set DEBUG=False ...
Amos P's user avatar
  • 45
0 votes
0 answers
500 views

Problem with adding Noise to a grayscale image with Python

I tried to add a gaussian noise to a grayscale image with something like: noise = np.random.normal(0, sigma, img.shape(img)) img = img + noise The problem is that i got a noisy image when i save it ...
salim terai's user avatar
0 votes
1 answer
736 views

Static files not found when deploying Django project on Heroku

I'm writing a project with a TypeScript/React frontend built using Webpack and a backend run by Django. Running npm run build and then ./manage.py collectstatic works fine locally. But I'm running ...
paul's user avatar
  • 87
0 votes
1 answer
943 views

Module "whitenoise.storage" does not define a "CompressedMainfestStaticFilesStorage" attribute/class

I'm using whitenoise to serve static files in my Django project. Here is the settings.py STATIC_URL = 'data/static/' SITE_ROOT = os.path.dirname(os.path.realpath(__file__)) STATICFILES_DIRS = [ os....
Chandan Raj's user avatar
0 votes
0 answers
313 views

Why does this white noise spectrum have a peak for freq=0?

From theory we know that the spectrum of a white noise is constant. S(w)=S0 I have written code where I define a white noise though numpy random. Then I apply the Fast Fourier Transform to it. I would ...
Francesco's user avatar
  • 121
0 votes
2 answers
422 views

Simulating a Random Walk with a drift (using a for loop)

I am trying to build a simulation of a random walk process with a drift using a loop, however, I am not able to get any outputs and instead I get a length error (number of items to replace is not a ...
Santiago Vallejo's user avatar
0 votes
1 answer
443 views

Django, getting 500 error when debug=False

The app works when debug = True, when debug = False I am getting 500 errors on both my computer and Heroku. The http://127.0.0.1:8000/admin/ part is working. http://127.0.0.1:8000/ is the one giving ...
UBGN's user avatar
  • 37
0 votes
2 answers
567 views

Django cannot find staticfiles

When I try to run my localhost server I get the following error: FileNotFoundError: [Errno 2] No such file or directory: '/static/CSV/ExtractedTweets.csv' This error is due to the line the line with ...
FANCY_HOOMAN's user avatar
1 vote
1 answer
685 views

Do we need to add files (in the folder) that White Noise creates to the gitignore list?

I have a django project and using whitenoise for static files serving. When we run py manage.py collectstatic whitenoise, that create lot of files in selected folder in STATIC_ROOT object of settings....
Ali Nazari's user avatar
1 vote
1 answer
11k views

How to solve "FileNotFoundError: [Errno 2] No such file or directory: '/code/static" when deploying a django app to heroku?

I was reading William S. Vincent's book Django for Professionals book, and I tried to deploy a django app to heroku, but static folder location fails while deploying this app, i am using Docker and ...
SAUL ROJAS's user avatar
0 votes
0 answers
3k views

Django static files not updating inside docker container

My Django project uses Docker, gunicorn, and whitenoise. I recently altered settings to prepare for deployment, most notably adding configurations for AWS-hosted media files. Now when I run the ...
Nathan_James's user avatar
1 vote
2 answers
682 views

How to write dynamic (Django) URLs for serving images using Whitenoise on Heroku?

I followed this answer here and read the tips here about serving static images. But I'm baffled: The official Whitenoise docs said to write the URLs this way: <img src="{% static "images/...
YCode's user avatar
  • 1,242