Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

340
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda