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

質問済み 8ヶ月前251ビュー
1回答
0
承認された回答

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
エキスパート
回答済み 8ヶ月前
profile picture
エキスパート
レビュー済み 6ヶ月前
  • Yes. That was the issue! Thank you!

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ