Django Tailwind on Elastic Beanstalk

0

Good day,

I recently deployed a Django project to Elastic Beanstalk using the following tutorial: testdriven.io/blog/django-elastic-beanstalk/

This is the website: http://gmoonline4-dev.us-east-1.elasticbeanstalk.com/

The website works fine, including the admin and database, except for the CSS, which gives an error

This template loads properly in development, but you can see the end product after deployment.

I tried including the container_command "python3 manage.py tailwind start", but this fails the deployment.

Can anyone assist me with this? I am not sure if this is an error in my django application or my EB configuration.

Thanks! If you need any code, I'll post it here

preguntada hace 8 meses251 visualizaciones
1 Respuesta
0
Respuesta aceptada

Hi Marcus,

It seems the issue is with your static files not being served correctly. The tutorial you reference explains how you set up an s3 bucket to store the static files and then configure Django to find the static files in the bucket.

Review the section S3 for File Storage and let me know if that fixed it!

If the answer is helpful, please click "Accept Answer" and upvote it.

profile picture
EXPERTO
respondido hace 8 meses
profile picture
EXPERTO
revisado hace 6 meses
  • Yes. That was the issue! Thank you!

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas