Browse Source

Disable strict manifest

pull/170/head
Michael Olund 5 years ago
parent
commit
a731857e0f
2 changed files with 8 additions and 1 deletions
  1. +7
    -0
      edivorce/apps/core/storage.py
  2. +1
    -1
      edivorce/settings/base.py

+ 7
- 0
edivorce/apps/core/storage.py View File

@ -0,0 +1,7 @@
from whitenoise.storage import CompressedManifestStaticFilesStorage
class WhiteNoiseStaticFilesStorage(CompressedManifestStaticFilesStorage):
# Error was occuring becauase vue.js doesn't always output chunk-common.js
# Solution from https://stackoverflow.com/a/51580328/2616170
manifest_strict = False

+ 1
- 1
edivorce/settings/base.py View File

@ -121,7 +121,7 @@ USE_THOUSANDS_SEPARATOR = True
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles/')
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATICFILES_STORAGE = 'edivorce.apps.core.storage.WhiteNoiseStaticFilesStorage'
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',


Loading…
Cancel
Save