Skip to content

Support prefixed staticfile dir #160

@adamghill

Description

@adamghill

STATICFILES_DIRS can be a list of tuples to add a prefix for static files: https://docs.djangoproject.com/en/5.2/ref/settings/#prefixes-optional.

However, that causes the following TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'tuple' error.

Image

I think

dist_css = Path(settings.STATICFILES_DIRS[0]) / dist_css_base
can check for a tuple and handle that specifically? If that makes sense I can make a PR, but wanted to check first before I do that!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions