The document said you need to create a static root path first, then Django will auto reverse your static file's URL.
On Tue, Dec 11, 2018 at 7:03 AM <[email protected]> wrote: > I am using the documentation to learn Django. When I started creating > static files, I started to get problems. I am using this: > https://docs.djangoproject.com/en/2.1/howto/static-files/ but I think it > is using Django template engine. How can I fix this problem? > > Does every static file needs a url? > > Thank you. > > La información contenida en este e-mail y sus anexos es confidencial, > privilegiada y está dirigida exclusivamente a su destinatario, en > consecuencia, solo puede ser utilizada por aquel. Si usted no es el > destinatario original, no deberá examinar, usar, copiar o distribuir este > mensaje o la información que contiene. Si lo recibe por error, por favor > reenvíelo a la persona que se lo envió y elimínelo. Cualquier retención o > uso total o parcial no autorizada de este mensaje está estrictamente > prohibida y sancionada por ley. > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > 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/48ff25dd-f227-4984-82f4-26dc0c60e948%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/48ff25dd-f227-4984-82f4-26dc0c60e948%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 [email protected]. To post to this group, send email to [email protected]. 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/CAMNWVFp0nCR37cO_gD-M8aKKTCk4%3DE6TkbFc_PGw7P7jj99Qjw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

