Hello,

Take a look at
https://djangodeployment.com/2016/11/21/how-django-static-files-work-in-production/
and if you still have problems show us the related nginx or apache 
configuration.

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com

On 2017-07-03 02:25, Dennis Gathagu wrote:
>
> i'm having problems with django static files in production.I know django
> requires that you collectstatic during deployment, which i did. The real
> problem comes when i try to access my page on the browser and i get a 403
> forbidden error on all static files. I tried changing my permissions and
> ownership of var/www/html folders to 755 and files to 644 but still no luck.
> How do i make my static files load?
>
>
> <https://lh3.googleusercontent.com/-PkJOVHB5mtI/WVmA_DQE_nI/AAAAAAAAANQ/XBZ2OVohMhY6HxQ5Z-4Mtab7ynMq-xqZwCLcBGAs/s1600/Capture.JPG>
>
>
> please advise me on what to do, i have been struggling with this problem for
> days now.
>
> thanks in advance, Dennis
>
> -- 
> 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
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To post to this group, send email to django-users@googlegroups.com
> <mailto:django-users@googlegroups.com>.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5ecd31a9-e135-4558-8b8b-1754308cfa35%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/5ecd31a9-e135-4558-8b8b-1754308cfa35%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b869f85f-d788-c7ef-3e2f-766f9dd96bd2%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to