Static files is not loading while deploying the project to AWS ec2

35 views
Skip to first unread message

Nishant Sagar

unread,
Nov 5, 2022, 3:34:54 AM11/5/22
to django-d...@googlegroups.com, django...@googlegroups.com
Hi all,

I deployed the django project to AWS ec2 instance using nginx and gunicorn but the static file is not loading at all.

Can someone suggest where did I do wrong?

Note - I've not created Profile before deploying 

Here is my settings.py file
STATIC_URL = 'static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'),)

Project URl - http://54.242.38.208/

Thank you for your help,
Nishant







Adam Johnson

unread,
Nov 5, 2022, 4:24:38 AM11/5/22
to django-d...@googlegroups.com
django-developers is not a support channel. Email support requests to *only* django-users.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CANNtL-K_ntgKNAYUd8DHe8wa4bGwHO5da%3DypJfAVN%3DJHj9uCmQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages