test this STATIC_URL = "/static/" STATIC_ROOT = os.path.join(BASE_DIR, "static") url.py urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
On Tue, Aug 25, 2020 at 12:45 PM RANGA BHARATH JINKA < bharathjink...@gmail.com> wrote: > Hi, > > I think it is not able to find the file. Please check whether it is the > correct location of the files. > Add a static root in settings file like > STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') > > STATIC_URL = '/static/' > > STATICFILES_DIRS = [ > os.path.join(BASE_DIR, 'static') > ] > > MEDIA_URL = '/images/' > > MEDIA_ROOT = os.path.join(BASE_DIR, 'static/images') > > All the best > > On Mon, Aug 24, 2020 at 10:03 PM Haris Ahmad <xhado...@gmail.com> wrote: > >> Have you added whitenoise to the settings.py >> >> On Mon, 24 Aug 2020, 9:27 PM Amresh Giri, <amresh.gir...@gmail.com> >> wrote: >> >>> Is is supposed to be "statics" ? >>> >>> On Mon, Aug 24, 2020, 9:49 PM alka reetesh <alkareetes...@gmail.com> >>> wrote: >>> >>>> I have used python manage.py collectstatic, which gave >>>> error--FileNotFoundError: [WinError 3] The system cannot find the path >>>> specified: 'C:\dmform\myproject\statics' >>>> >>>> -- >>>> 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/0dd03bb0-3c6c-4e7f-b7d7-9f6f55aae7bbn%40googlegroups.com >>>> <https://groups.google.com/d/msgid/django-users/0dd03bb0-3c6c-4e7f-b7d7-9f6f55aae7bbn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >>> 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/CAJqzuMH9YfLHQnj3tESo8cZpYTRqf7uqXitZHdakfVt_2yRFTg%40mail.gmail.com >>> <https://groups.google.com/d/msgid/django-users/CAJqzuMH9YfLHQnj3tESo8cZpYTRqf7uqXitZHdakfVt_2yRFTg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> 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/CAG0UDYbWg9NQ6vHNdbWA0UNhb3Td1v7Mc4SxnxCeveywe6AMkg%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAG0UDYbWg9NQ6vHNdbWA0UNhb3Td1v7Mc4SxnxCeveywe6AMkg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > Thanks and Regards > > J. Ranga Bharath > cell: 9110334114 > > -- > 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/CAK5m316v%2BgjgysVfK66Nrz4rG%2BUwYdV07u1y_QHB%3DMp-MhhU%2Bw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAK5m316v%2BgjgysVfK66Nrz4rG%2BUwYdV07u1y_QHB%3DMp-MhhU%2Bw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/CADA6z%3DR3-wjBM14Bg1DxjRQg1UPjSU9BHma9TdqLf98z%3DFrsUg%40mail.gmail.com.