I have a Django_cms application. It runs correctly both locally and remotely once i deploy. My problem comes when i want to use whitenoise to manage staticfiles. Once i install white noise and adjust my settings.py file with the below details,
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'staticfiles')
STATIC_URL = '/static/'
MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media')
MEDIA_URL = '/media/'
STATICFILES_DIRS = (
os.path.join(PROJECT_ROOT, 'static'),
)
STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
and try to run the server i get the error below.
ValueError: The file 'filer/js/addons/popup_handling.js' could not be found with <whitenoise.storage.CompressedManifestStaticFilesStorage object at 0x7f9a96e45690>.
This error i get it on my local server and when i run heroku logs
i get the same error.
Kindly assist.