Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fix in offline template #122

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

David-Guillot
Copy link
Contributor

@David-Guillot David-Guillot commented Sep 27, 2024

Hi there 👋

The offline template crashes when static files are collected using django.contrib.staticfiles.storage.ManifestStaticFilesStorage, because some CSS file is called with an absolute path.

This PR just makes the CSS file path relative.

Fixes #57 and #52

When `collectstatic` is used with `ManifestStaticFilesStorage`, static files paths are always generated as relative, e.g. `css/django-pwa-app.css`. Calling `/css/django-pwa-app.css` results in
> ValueError: Missing staticfiles manifest entry for '/css/django-pwa-app.css'
@hartungstenio
Copy link
Collaborator

hartungstenio commented Sep 27, 2024

Hello @David-Guillot.

Thanks for your contribution.

I just released 2.0.1 with this change.

@hartungstenio hartungstenio merged commit 73ab12c into silviolleite:master Sep 27, 2024
6 checks passed
@David-Guillot David-Guillot deleted the patch-1 branch September 27, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not Found: /css/django-pwa-app.css
2 participants