4π
The staticfiles.json
manifest version changed in Django 4.2 (see commit).
The error message Couldn't load manifest 'staticfiles.json' (version 1.0)
is probably happening when Django before version 4.2 tries to parse a manifest made by Django 4.2, for example in the case of downgrading an instance of Django from version 4.2 to version 3.2.
In this case, the easiest solution would be to empty out STATIC_ROOT
and run collectstatic
again.
- [Django]-Django reverse lookup foreignkey not working
- [Django]-Django-paypal change currency to euro
- [Django]-Django extends different base templates
- [Django]-TypeError: 'RegexValidator' object is not iterable
- [Django]-Excluding a single project file from an SVN repository
0π
From the Django static files documentation
Since creating the MD5 hash can be a performance burden to your
website during runtime, staticfiles will automatically store the
mapping with hashed names for all processed files in a file called
staticfiles.json. This happens once when you run the collectstatic
management command.
So it seems you did not run the collectstatic command
python manage.py collectstatic
- [Django]-Django S3 uploaded file urls show credentials
- [Django]-Override ModelViewSet's queryset with filter backends applied
- [Django]-Deploying django to AWS Lambda connecting to RDS MySQL, showing error: NameError: name '_mysql' is not defined
- [Django]-Django weird css issue
- [Django]-Django database charset issue
0π
Faced the same issue, collectstatic command was raising this.
After a lot of looking around, this worked for me
Remove all the files starting with staticfiles*
and rebuild your app.
sudo rm static/staticfiles*
- [Django]-Complicated Django Query
- [Django]-What exactly does django request.POST do and how to use it?
- [Django]-Background process in GAE
- [Django]-Django, Filter the set presented in a many to many modelform by currently logged in user
- [Django]-How do I iterate ManyToMany field in Django template tag?