Option 1:
Note: keep your images under media/ <folder> for upload and view
Option 2:
if you want to change the default media folder under your project root,
then please go to settings.py
MEDIA=<custom path>
MEDIA_URL=<path after above media settings>
Now
http://<url:port>/media/customfolder/image.jpg
No comments:
Post a Comment