Answer the question
In order to leave comments, you need to log in
How to use static file in Views in django?
How to use static file in Views in django?
In urls I registered + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT), added files to the folder.
I don’t quite understand how they can be used in Views, or rather, specify the path to them
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question