How To Access Uploaded Files In Django?
I followed the uploading example for django here: Minimal Django File Upload Example Now I want display the uploaded file (.jpg or .pdf) in the browser. By clicking on the link the
Solution 1:
You need to enable django to serve static files for you. Docs https://docs.djangoproject.com/en/dev/howto/static-files/ . This in particular https://docs.djangoproject.com/en/dev/howto/static-files/#serving-files-uploaded-by-a-user-during-development .
Post a Comment for "How To Access Uploaded Files In Django?"