У нас вы можете посмотреть бесплатно How to upload images with Django REST framework или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
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