131 questions
Best practices
0
votes
1
replies
151
views
Best way to generate a noisy image with ImageMagick?
What's the best way to generate a noisy image with ImageMagick?
I'd like to create an image where the color-frequency distribution is even (white noise) or skewed toward lower frequency colors (brown ...
1
vote
0
answers
77
views
Django, docker compose, whitenoise and railways: new js files not found in production (it works in local)
I am working in a django project where I have installed and configured whitenoise to serve static files in railways. But railways is not serving or collecting my new js files. In my browser I get a ...
2
votes
0
answers
115
views
Pre-whitening MRI
I'm working on SENSE MRI reconstruction using simulated phantom data in MATLAB. I add correlated Gaussian noise to the data and then apply a whitening transform so that the noise covariance matrix ...
0
votes
1
answer
52
views
Overriding Collectstatic and Manifestic file storage
I am trying to integrate terser js minification in a django collectstatic command , by overriding the CompressedManifestStaticFileStorage of whitenoise in below code , but the def _save() method ...
2
votes
0
answers
85
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, ...
0
votes
1
answer
53
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 ...
0
votes
1
answer
149
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 ...
0
votes
2
answers
518
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/...
0
votes
0
answers
232
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 ...
1
vote
4
answers
830
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 = ['*']
...
0
votes
2
answers
160
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 ...
0
votes
1
answer
147
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 ...
0
votes
1
answer
598
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 ...
0
votes
1
answer
286
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 ...
0
votes
1
answer
484
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? (...