def course_api(request): # logger.log(f'Метод view course_api передаю {site.courses}') ret = BaseSerializer(site.courses).save() # print(f'type()-->{type(ret)}') logger.log(f'Отправка данных /api/ --->{ret}') print(f'Отправка данных /api/ --->{ret}') return '200 OK', [ret.encode('utf-8')]
def __call__(self, request): return '200 OK', BaseSerializer(site.courses).save()
def course_api(request): return code_success, BaseSerializer(site.courses).save()
def course_api(request): return '200 OK', BaseSerializer(site.courses).save()