Example #1
0
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')]
Example #2
0
 def __call__(self, request):
     return '200 OK', BaseSerializer(site.courses).save()
Example #3
0
def course_api(request):
    return code_success, BaseSerializer(site.courses).save()
Example #4
0
def course_api(request):
    return '200 OK', BaseSerializer(site.courses).save()