﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34929	Issue with Django 3.2 and Django-storage 1.14.2 after Upgrading from Django 2.2.28	Akash Ilangovan	nobody	"- Upgraded from Django 2.2.28 to 3.2.
- Using Django-storage 1.14.2.
- Replaced CachedFilesMixin with ManifestStaticFilesStorage.
- Post-upgrade, everything was the same; no other settings changed.
- Issue: self.location is caching a None value that doesn't alter.
- Temporary Fix: Deleting the cache in the debugger manually with a del statement resolves the issue.
Code Snippet:
  {{{#!python
  class StaticFilesStorage(ManifestStaticFilesStorage, S3Boto3Storage):
    def __init__(self, *args, **kwargs):
        S3Boto3Storage.__init__(self, bucket_name=settings.STATIC_FILES_BUCKET, custom_domain=domain(settings.STATIC_URL), *args, **kwargs)
        ManifestStaticFilesStorage.__init__(self, *args, **kwargs)

  }}}
}}}
PDB output showing cached None value in self.location:
{{{
(Pdb) self.base_location
'tmp/vantage/static/'
(Pdb) self.location
''
(Pdb) os.path.abspath(self.base_location)
'/app/tmp/vantage/static'
(Pdb) del self.location
(Pdb) self.location
'/app/tmp/vantage/static'
(Pdb) self._location
'tmp/vantage/static/'
(Pdb) c
}}}
"	Bug	new	Utilities	3.2	Normal		static files, ManifestStaticFilesStorage		Unreviewed	0	0	0	0	0	0
