Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

338
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!