dashboard patch - issue with large number of files

28 views
Skip to first unread message

Tom Clerckx

unread,
Nov 13, 2025, 6:43:59 AMNov 13
to py4web
For some projects I have directories with a very large number (order of 30000) of uploaded files.
This causes issues with the _dashboard application, as it loads the directory structure in the browser. Due to the large number of files, it becomes slow and unresponsive.

I made a patch for the _dashboard application that allows one to exclude files and directories from being loaded in the _dashboard.

Excluded files and directories can be specified in a file dashboard_skip.json in the top of the application directory.

Example of a dashboard_skip.json file:
{
    "dirs": [
        "uploads",
        "static/images"
    ],
    "files": [
        "*.md"
    ]
}

2025-11-13-dashboard.patch

Massimo DiPierro

unread,
Nov 15, 2025, 4:08:22 PMNov 15
to py4web
I see the problem. I would like to propose a slight different solution (and recycle 90% of your PR). I am going to assume there is a .p4w_ignore at the root of the app with the same syntax as .gitignore as opposed to a custom json format. If present those files will not be visualized. If you agree I can merge your PR and make the change

Tom Clerckx

unread,
Nov 16, 2025, 4:08:35 PMNov 16
to py4web
Sounds good!
Reply all
Reply to author
Forward
0 new messages