this is my settings.py file
STATIC_URL = 'static/'
This production code might break development mode, so we check whether we're in DEBUG mode
1# Tell Django to copy static assets into a path called `staticfiles` (this is specific to Render)
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
# Enable the WhiteNoise storage backend, which compresses static files to reduce disk use
# and renames the files with unique names for each version to support long-term caching
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
Adjust this if your development static files are in a different directory
Default primary key field type
STATICFILES_DIRS=[
os.path.join(BASE_DIR,'product/static'),
os.path.join(BASE_DIR,'static'),
]
error
using Web Server Gateway Interface (WSGI)
LAMBDA_WARNING: Unhandled exception. The most likely cause is an issue in the function code. However, in rare cases, a Lambda runtime update can cause unexpected function behavior. For functions using managed runtimes, runtime updates can be triggered by a function change, or can be applied automatically. To determine if the runtime has been updated, check the runtime version in the INIT_START log entry. If this error correlates with a change in the runtime version, you may be able to mitigate this error by temporarily rolling back to the previous runtime version. For more information, see https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html
[ERROR] ValueError: Missing staticfiles manifest entry for '/icon/apple-touch-icon.png'
Traceback (most recent call last):
File "/var/task/vc__handler__python.py", line 160, in vc_handler
response = Response.from_app(__vc_module.app, environ)
File "/var/task/werkzeug/wrappers/base_response.py", line 287, in from_app
return cls(*_run_wsgi_app(app, environ, buffered))
File "/var/task/werkzeug/wrappers/base_response.py", line 26, in _run_wsgi_app
return _run_wsgi_app(*args)
File "/var/task/werkzeug/test.py", line 1096, in run_wsgi_app
app_rv = app(environ, start_response)
File "/var/task/django/core/handlers/wsgi.py", line 124, in call
response = self.get_response(request)
File "/var/task/django/core/handlers/base.py", line 140, in get_response
response = self._middleware_chain(request)
File "/var/task/django/core/handlers/exception.py", line 57, in inner
response = response_for_exception(request, exc)
File "/var/task/django/core/handlers/exception.py", line 140, in response_for_exception
response = handle_uncaught_exception(
File "/var/task/django/core/handlers/exception.py", line 185, in handle_uncaught_exception
return callback(request)
File "/var/task/product/views.py", line 273, in custom_500_view
return render(request, '500.html', status=500)
File "/var/task/django/shortcuts.py", line 24, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/var/task/django/template/loader.py", line 62, in render_to_string
return template.render(context, request)
File "/var/task/django/template/backends/django.py", line 61, in render
return self.template.render(context)
File "/var/task/django/template/base.py", line 175, in render
return self._render(context)
File "/var/task/django/template/base.py", line 167, in _render
return self.nodelist.render(context)
File "/var/task/django/template/base.py", line 1005, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/var/task/django/template/base.py", line 966, in render_annotated
return self.render(context)
File "/var/task/django/templatetags/static.py", line 116, in render
url = self.url(context)
File "/var/task/django/templatetags/static.py", line 113, in url
return self.handle_simple(path)
File "/var/task/django/templatetags/static.py", line 129, in handle_simple
return staticfiles_storage.url(path)
File "/var/task/django/contrib/staticfiles/storage.py", line 203, in url
return self._url(self.stored_name, name, force)
File "/var/task/django/contrib/staticfiles/storage.py", line 182, in _url
hashed_name = hashed_name_func(*args)
File "/var/task/django/contrib/staticfiles/storage.py", line 513, in stored_name
raise ValueError(
i'm not able to load the static files , getting error in the deployment