Steps for adding ImageField in Django, Django Rest Framework

1. pip install pillow
2. modify the task app model and add ImageField to handle images
3. modify serializer for image and file field
4. create a folder in base project directory to store MEDIA data (i.e.: images, uploaded files)
5. Add MEDIA related settings (MEDIA_ROOT & MEDIA_URL) ins file.
6. Modify in order to handle static media content

No Comments

You can leave the first : )

Leave a Reply

Your email address will not be published. Required fields are marked *