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

posta 8 mesi fa251 visualizzazioni
1 Risposta
0
Risposta accettata

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
ESPERTO
con risposta 8 mesi fa
profile picture
ESPERTO
verificato 6 mesi fa
  • Yes. That was the issue! Thank you!

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande