Skip to content

collectstatic Post-processing 'rest_framework\css\bootstrap-theme.min.css' failed! even after installing whitenoise latest version  #8608

Closed
@osadolortech

Description

@osadolortech

Checklist

-when i was using Django 4.0.6 i was able to use the compressed manifest static storage and collect static was fine but when i moved to Django 4.1 i ran collect static i started getting errors when using compress manifest
issues

i think is because files are not compressed and no unique name for each version

  • WhiteNoise comes with a storage backend which automatically takes care of compressing your files and creating unique names for each version so they can safely be cached forever. To use it, you have to add it at the bottom of your settings, it should be the last line in settings.py STATICFILES_STORAGE = "whitenoise.storage.CompressedStaticFilesStorage"
    issue
    this solves the problem.

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