Skip to content

Commit

Permalink
Fix cannot collectstatic (#3446)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasciput authored Aug 21, 2023
1 parent 0873a1a commit 72578b1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions bims/storage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from pipeline.storage import PipelineManifestStorage


class NoSourceMapsStorage(PipelineManifestStorage):
def hashed_name(self, name, content=None, filename=None):
try:
return super().hashed_name(name, content=content, filename=filename)
except ValueError:
return name

2 changes: 1 addition & 1 deletion core/settings/contrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'this', 'that', 'to',
)

STATICFILES_STORAGE = 'pipeline.storage.PipelineManifestStorage'
STATICFILES_STORAGE = 'bims.storage.NoSourceMapsStorage'
STATICFILES_FINDERS += (
'pipeline.finders.PipelineFinder',
)
Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/REQUIREMENTS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ django-allauth==0.54.0
# Django Easy Audit
# https://github.com/soynatan/django-easy-audit
django-easy-audit==1.3.5
django-grappelli==2.15.4
django-grappelli==3.0.7

djangorestframework>=3.11.2
djangorestframework-gis==1.0
Expand Down
2 changes: 1 addition & 1 deletion deployment/production/REQUIREMENTS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ django-allauth==0.54.0
# Django Easy Audit
# https://github.com/soynatan/django-easy-audit
django-easy-audit==1.3.5
django-grappelli==2.15.4
django-grappelli==3.0.7

djangorestframework>=3.11.2
djangorestframework-gis==1.0
Expand Down

0 comments on commit 72578b1

Please sign in to comment.