[Fixed]-How to serve files for download in django?

1👍

In development, you can do this to get MEDIA_URL active

from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    # ... the rest of your URLconf goes here ...
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

Leave a comment