static-files Questions
2
Solved
I am having a little trouble setting up the static folders on elastic beanstalk for a django app I created. I manged to get the app to run without any of the css/js/etc. My file structure is:
|.e...
Antibiotic asked 9/6, 2020 at 0:10
7
I want to serve static HTML files which are in a /dist folder outside of the Nest project. index.html is loaded successfully but it fails to load any JS file (404 error).
I have a Node/Express.js ...
Brinkmanship asked 24/3, 2019 at 14:54
2
Solved
I have mounted the static directory in my FastAPI app using the following code:
from fastapi.staticfiles import StaticFiles
app = FastAPI(
title="Title of the Application",
description...
Abramson asked 10/1, 2022 at 12:49
12
Solved
Is there an easy way to turn off caching of static files in Django's development server?
I'm starting the server with the standard command:
python manage.py runserver
I've got settings.py configur...
Ludendorff asked 10/8, 2011 at 15:47
2
Solved
This seems to be a source of much confusion judging by the amount of similar titles on the subject, however trying everything I could find on static files with the django development server I've al...
Repercussion asked 7/2, 2012 at 17:39
6
I am new to react, and I am trying to build a chat-app with it. I used react-router to load different components according to the url. In my react project foler (client/src/index.js), the code is a...
Stockpile asked 8/7, 2018 at 0:10
16
Solved
I've seen several posts for this issue but didn't found my solution.
I'm trying to serve static files within my Django 1.3 development environment.
Here are my settings
...
STATIC_ROOT = '/home/...
Gladstone asked 16/5, 2011 at 8:14
3
Solved
when i runserver the django admin is missing css.The web console says that style sheet was not loaded because its MIME type,"application/x-css", is not "text/css".
This is my settings.py file
Dja...
Clastic asked 3/4, 2014 at 13:28
2
Solved
I have several sets of static .html files on my server, and I would like use nginx to serve them directly. For example, nginx should serve an URI of the following pattern:
www.mysite.com/public/do...
Vmail asked 9/10, 2012 at 19:17
3
Solved
I am deploying a Django app to Heroku using Docker. When I put RUN manage.py collectstatic --noinput in the Dockerfile, it fails because there is no value set for the environment variable DJANGO_SE...
Rattlehead asked 13/1, 2020 at 15:5
3
Solved
So, I'm swapping my project from node.js to python FastAPI. Everything has been working fine with node, but here it says that my static files are not present, so here's the code:
from fastapi impor...
Feltie asked 8/1, 2022 at 13:15
5
I am trying to serve static files that I have in a package_docs directory. When I open in the browzer:
http://127.0.0.1:8001/packages/docs/index.html , the page is running.
But I want to open th...
Cellulosic asked 18/6, 2020 at 17:15
9
Solved
I'm working on uploading/displaying images with Django.
The website is deployed on Heroku.
Following this tutorial I was able to successfully upload images.
However, the images weren't being di...
Gasp asked 26/5, 2014 at 16:13
16
Solved
I'm trying to serve static files through WhiteNoise as per Heroku's recommendation. When I run collectstatic in my development environment, this happens:
Post-processing 'css/iconic/open-iconic-bo...
Girand asked 9/11, 2014 at 14:50
1
Solved
Here is a simple static FastAPI app. With this setup even though the root path is expected to return a FileResponse of custom.html, the app still returns index.html. How can I get the root path wor...
Burnt asked 25/7, 2022 at 13:39
24
Solved
So this is embarrassing. I've got an application that I threw together in Flask and for now it is just serving up a single static HTML page with some links to CSS and JS. And I can't find where in ...
Halfcaste asked 17/12, 2013 at 23:31
2
Solved
It is a pretty simple Task, I want to use images in my razor pages which are located in wwwroot/css/images and use it in html like this.
<img src="~/css/images/logo.png"/>
In a normal ASP....
Fatuous asked 14/7, 2019 at 11:33
2
After executing the create-react-app and enabling the service workers in the index.js, all relevant files from the src folder are cached. However some of my resources reside in the public directory...
Depositor asked 23/2, 2019 at 11:8
2
Solved
I am involved in an application that uses whitenoise to serve static files. It is configured to use CompressedManifestStaticFilesStorage which in turn uses ManifestStaticFilesStorage.
By static fi...
Moderato asked 18/4, 2017 at 5:23
3
Solved
I'm working on my project using ReactJS and I use create-react-app to create my app. After building project, I use my server to serve the build folder. And when I update my app, the browser of user...
Koreykorff asked 25/7, 2018 at 17:29
2
Solved
I am using Django with runserver for my development. When I deploy to my production server I can see all my static files, but not on my local computer.
I did collectstatic and I have set DEBUG = T...
Linlithgow asked 5/12, 2013 at 11:19
7
Solved
I've been having this issue for the past couple of days and can't seem to get to the bottom of this. We doing a very basic node/express app, and are trying to serve our static files using something...
Singlet asked 14/2, 2018 at 2:8
2
I want to make an app where I need static pages on the base domain and my Blazor app on a subdirectory.
Example:
https://example.com is where my static pages should be (like '/features' or '/pricin...
Petrel asked 17/11, 2020 at 11:8
3
The documentation of Spring Boot states:
Do not use the src/main/webapp directory if your application will be
packaged as a jar.
But surprisingly the Spring Boot Sample for static web files ...
Mascara asked 6/5, 2015 at 12:54
2
I have virtual directories that point to some file servers in IIS. I learned that ASP.NET Core cannot "see" the virtual directories in IIS because it is running on Kestral.
I'm told the workaroun...
Melmon asked 3/4, 2017 at 17:29
1 Next >
© 2022 - 2025 — McMap. All rights reserved.