Tengo un proyecto Django en EB en Amazon Linux 2. Después de ejecutar el comando collectstatic, puedo verificar que hay una carpeta de archivos estáticos. Pero cuando voy al administrador, los archivos estáticos devuelven 404
Aquí está mi archivo de configuración que no funciona:
option_settings: aws:elasticbeanstalk:container:python: WSGIPath: backend.wsgi:application aws:elasticbeanstalk:application:environment: DJANGO_SETTINGS_MODULE: backend.settings aws:elasticbeanstalk:environment:proxy:staticfiles: /static/: staticfiles/Eliminé la barra después de la estática de esta manera y funcionó:
option_settings: ... aws:elasticbeanstalk:environment:proxy:staticfiles: /static: staticfiles/