django-jsonform icon indicating copy to clipboard operation
django-jsonform copied to clipboard

error with whitenoise

Open legshort opened this issue 3 years ago • 2 comments

with whitenoise environment manage.py collectstatic

after this command, error pops up.

whitenoise.storage.MissingFileError: The file 'django_jsonform/local/react-json-form.js.map' could not be found with <whitenoise.storage.CompressedManifestStaticFilesStorage object at 0x112204fd0>.

The JS file 'django_jsonform/local/react-json-form.js' references a file which could not be found:
  django_jsonform/local/react-json-form.js.map

thanks in advance.

legshort avatar Aug 04 '22 06:08 legshort

Hello. Thanks for reporting this.

Which version of django-jsonform are you using?

Find out with this command:

$ python -c "import django_jsonform; print(django_jsonform.__version__)"

bhch avatar Aug 04 '22 06:08 bhch

Nevermind, I see the cause of problem now. Related to issue #37.

There's a folder called local which I use to keep js files during development. This should not get included in the installable package. But due to some bug in setuptools, the wheel builds don't exclude the local folder.

As a temporary solution, you can set WHITENOISE_MANIFEST_STRICT = False in your settings to suppress this error.

I will fix this issue in the next release. Hopefully by next week.

bhch avatar Aug 04 '22 07:08 bhch

Fixed in v2.11.0. Please upgrade.

bhch avatar Aug 16 '22 16:08 bhch