How to upload images with Django REST framework

Описание к видео How to upload images with Django REST framework

Any modern applications has to work with user uploaded data, for instance, with user avatars. When it comes to Django, software developers make use of forms to upload files. With Django REST framework the situation is a bit different, so we need to write some custom logic to accomplish this task.

In this video we will research how upload images to the app that is written with Django REST framework.
00:00 - Start
01:30 - Modify the settings.py file
02:16 - Modify the User model to store avatars
04:30 - The Pillow library overview
05:43 - Adding the Pillow library to the project
06:50 - Implement the AvatarSerializer
08:51 - Parsers
12:10 - Create the ChangeAvatarAPIView
15:23 - Register the view with the urls.py file
15:50 - Testing the implementation

Source code for this tutorial: https://git.yurimednikov.xyz/yuri/dja...

#djangorestframework #django #python #pythonprogramming #python3 #webdevelopment #webprogramming #webdesign #webdev #developers #coding

Комментарии

Информация по комментариям в разработке