Skip to content

Commit

Permalink
fix(templates): absolute path on static call
Browse files Browse the repository at this point in the history
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'
  • Loading branch information
David-Guillot authored and hartungstenio committed Sep 27, 2024
1 parent 98c0a58 commit 73ab12c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pwa/templates/offline.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<meta charset="UTF-8">
<title>Default offline template</title>
<link href="{% static '/css/django-pwa-app.css' %}" rel="stylesheet">
<link href="{% static 'css/django-pwa-app.css' %}" rel="stylesheet">
</head>
<body>
<h1>You are currently not connected to any networks.</h1>
</body>
</html>
</html>

0 comments on commit 73ab12c

Please sign in to comment.