Django Collectstatic in Amazon Elastic Beanstalk not working
I have deployed a Django app on an Amazon resilient beanstalk. However css in django admin doesn't work. I understand that this is a collecting problem. This is what my settings.py looks like :
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATIC_URL = '/static/'
And I have this line in my ebconfig.config file :
container_commands:
01_collectstatic:
command: "python manage.py collectstatic --noinput"
However, this is how it looks as soon as I deploy it to amazon: I tried to view the log files in the amazon console. I found a line that reads:
EmbeddedPostBuild/postbuild_0_dcape/Command 01_collectstatic] : Starting activity...
.....
0 static files copied to '/opt/python/bundle/33/app/static', 102 unmodified.
What do I need to do to make sure it works?
+3
source to share
No one has answered this question yet
See similar questions:
or similar: