반응형
pip install djangorestframework
settings.py
INSTALLED_APPS = [
...
'rest_framework',
]
그리고 개별 serializers를 만들자.
https://github.com/KimDoKy/DjangoRestFramework-Tutorial/blob/master/REST%20Framework%20Tutorial.md
참고
Restframework 시작하기
https://javafa.gitbooks.io/python-django/content/chapter4.html
모델참조아닌 기본 serializers 만들기
https://github.com/KimDoKy/DjangoRestFramework-Tutorial/blob/master/REST%20Framework%20Tutorial.md
ListField
https://www.django-rest-framework.org/api-guide/fields/#listfield
https://stackoverflow.com/questions/37629501/django-rest-framework-listfield-and-dictfield
반응형
'개발 > django' 카테고리의 다른 글
(98)Address already in use (0) | 2019.02.07 |
---|---|
Django host name error (0) | 2019.02.07 |
Postman POST 오류 (0) | 2019.01.23 |
앱별로 로그쌓기 (0) | 2019.01.22 |
로그 백업 방식 (logging - handlers) (0) | 2019.01.22 |