As a recent Django new user I was having a lot of trouble with static files 
as well. Basically couldn't get Admin CSS to work.

We are using whitenoise now. Apparently that is helping solve the problem.

On Saturday, November 5, 2022 at 12:35:31 AM UTC-7 nishan...@gmail.com 
wrote:

> 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/
> Github- https://github.com/Nishant-Sagar/BaskinSolar
>
> Thank you for your help,
> Nishant
>
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/899a8d1e-8c21-444b-9c9f-215c2a6cd6e8n%40googlegroups.com.

Reply via email to