ClimenteA / flaskwebgui

Create desktop applications with Flask/Django/FastAPI!
MIT License
718 stars 71 forks source link

Unable to load static files #157

Closed pathroz closed 2 months ago

pathroz commented 2 months ago

Hi, I'm using Django==5.1

I did as instructed, but i keep getting this warning

    Command: C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe --user-data-dir=C:\Users\HP\AppData\Local\Temp\flaskwebguid9e810a4d98940cd8abaa9bbd8f989ee --new-window --no-first-run --window-size=500,500 --app=http://127.0.0.1:49582
    WARNING:django.request:Not Found: /static/css/style.css
    WARNING:django.request:Not Found: /static/js/todo.js
    WARNING:django.request:Not Found: /static/css/style.css
    WARNING:django.request:Not Found: /favicon.ico

When i run with just django run server i get status code 200

is there any steps to fix this

Edit 1: i have add the js and css directlty in to html and works fine

pathroz commented 2 months ago

Update

I installed Whitenoise module and added it to middle ware and that fixed it for me