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

feita há 8 meses251 visualizações
1 Resposta
0
Resposta aceita

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
ESPECIALISTA
respondido há 8 meses
profile picture
ESPECIALISTA
avaliado há 7 meses
  • Yes. That was the issue! Thank you!

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas