Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

342
Vistas
Static Files Don't Work Django Elastic Beanstalk Amazon Linux 2

I have Django project on EB on Amazon Linux 2. After running the collectstatic command, I can verify that there is a staticfiles folder. But when I go to the admin, the static files return 404

Here is my config file which doesn't work:

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/
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I removed the slash after the static like this and it worked:

option_settings:
  ...

  aws:elasticbeanstalk:environment:proxy:staticfiles:
    /static: staticfiles/
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda