Categories
Url to path Django?
url( r"^media/(?P<path>.*)$", serve, { "document_root": MEDIA_ROOT, },
path
Answer the question
In order to leave comments, you need to log in
re_path(r'^media/(?P<path>.*)$', serve, { 'document_root': settings.MEDIA_ROOT, }),
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question