Hi, The default way to do staticfile deployment in production is first of all to run collectstatic. Then change debug to false. But in doing so, django no longer serves the staticfiles, so you need to setup a http server infront of django (nginx or apache). Read here about the settings: https://docs.djangoproject.com/en/2.2/howto/static-files/
And then you can get a guide how to setup nginx and django here: https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-14-04 Regards, Andréas Den tis 18 juni 2019 kl 21:38 skrev Soumen Khatua <soumenkhatua...@gmail.com >: > Hi Folks, > After run python manage.py collrctststic all the static files copied into > project_root specified folder. But after doing debug = false,the images and > Css files link is not working and showing 404 error message in console. But > when I did debug = True it's url and everything working properly. I'm using > django 1.11 so I also added {% load staticfiles %} > > <link rel = style... href ={% "static ' css/style.css' " %} > > I'm using loacal machine server(python manage.py runserver) yjen what is > problem in this case??? > > > Please help guys. > > Thank You. > > -- > 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/CAPUw6WZZLnWc3K%3DinjD1j4v0Bp56iGOkama9Yy4w28qeqtuA4Q%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAPUw6WZZLnWc3K%3DinjD1j4v0Bp56iGOkama9Yy4w28qeqtuA4Q%40mail.gmail.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/CAK4qSCeA%2B-uU%2BkRTsaPKwsRAPf9ctbsa6reOH6g%2Bvsi%3DqpptoA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.