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

asked 7 months ago240 views
1 Answer
0
Accepted Answer

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
EXPERT
answered 7 months ago
profile picture
EXPERT
reviewed 6 months ago
  • Yes. That was the issue! Thank you!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions