Study Log
์นด์นด์ค ๋ก๊ทธ์ธ
Postman์ ํตํ Token Test
์ธ์ฆ๊ณผ ์ธ๊ฐ
Django ๊ธฐ๋ณธ ์ ์ ๋ชจ๋ธ ํ์ฅํ๊ธฐ .
Django Database ์ฐ๊ฒฐ
Django Rest Framework, Serializer, View Concept
Django Rest Framework ์ถ์ํ ์ ๋์ ๋ฐ๋ฅธ ๋๊ตฌ๋ค
Class-based Views
Creating views and serializers โ Django Rest Framework
API View vs Viewsets
Viewsets & Routers
ModelViewSet ๋
API for resource with tags with django and DRF
Django get_or_create ํจ์
Django update_or_create ํจ์
Django get_object_or_404
์ฅ๊ณ ๋ค๋๋ค ๋ฐ์ดํฐ ์ถ๊ฐ
my_obj.categories.add(fragmentCategory.objects.get(id=1))
or
my_obj.categories.create(name='val1')
์ฅ๊ณ HTTP Status code
HTTP_100_CONTINUE
HTTP_101_SWITCHING_PROTOCOLS
HTTP_200_OK
HTTP_201_CREATED
HTTP_202_ACCEPTED
HTTP_203_NON_AUTHORITATIVE_INFORMATION
HTTP_204_NO_CONTENT
HTTP_205_RESET_CONTENT
HTTP_206_PARTIAL_CONTENT
HTTP_207_MULTI_STATUS
HTTP_208_ALREADY_REPORTED
HTTP_226_IM_USED
HTTP_300_MULTIPLE_CHOICES
HTTP_301_MOVED_PERMANENTLY
HTTP_302_FOUND
HTTP_303_SEE_OTHER
HTTP_304_NOT_MODIFIED
HTTP_305_USE_PROXY
HTTP_306_RESERVED
HTTP_307_TEMPORARY_REDIRECT
HTTP_308_PERMANENT_REDIRECT
HTTP_400_BAD_REQUEST
HTTP_401_UNAUTHORIZED
HTTP_402_PAYMENT_REQUIRED
HTTP_403_FORBIDDEN
HTTP_404_NOT_FOUND
HTTP_405_METHOD_NOT_ALLOWED
HTTP_406_NOT_ACCEPTABLE
HTTP_407_PROXY_AUTHENTICATION_REQUIRED
HTTP_408_REQUEST_TIMEOUT
HTTP_409_CONFLICT
HTTP_410_GONE
HTTP_411_LENGTH_REQUIRED
HTTP_412_PRECONDITION_FAILED
HTTP_413_REQUEST_ENTITY_TOO_LARGE
HTTP_414_REQUEST_URI_TOO_LONG
HTTP_415_UNSUPPORTED_MEDIA_TYPE
HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE
HTTP_417_EXPECTATION_FAILED
HTTP_422_UNPROCESSABLE_ENTITY
HTTP_423_LOCKED
HTTP_424_FAILED_DEPENDENCY
HTTP_426_UPGRADE_REQUIRED
HTTP_428_PRECONDITION_REQUIRED
HTTP_429_TOO_MANY_REQUESTS
HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE
HTTP_451_UNAVAILABLE_FOR_LEGAL_REASONS
HTTP_500_INTERNAL_SERVER_ERROR
HTTP_501_NOT_IMPLEMENTED
HTTP_502_BAD_GATEWAY
HTTP_503_SERVICE_UNAVAILABLE
HTTP_504_GATEWAY_TIMEOUT
HTTP_505_HTTP_VERSION_NOT_SUPPORTED
HTTP_506_VARIANT_ALSO_NEGOTIATES
HTTP_507_INSUFFICIENT_STORAGE
HTTP_508_LOOP_DETECTED
HTTP_509_BANDWIDTH_LIMIT_EXCEEDED
HTTP_510_NOT_EXTENDED
HTTP_511_NETWORK_AUTHENTICATION_REQUIRED
How to count number of items in queryset ?
def get_answer_cnt(self, obj):
result = self.get_answers(obj)
return len(result)
Django REST framework Serialization of ManyRelatedField
๋ค์ค ์ด๋ฏธ์ง ์
๋ก๋
Django Pagination
์ถ์ฒ/๋น์ถ์ฒ ์๊ณ ๋ฆฌ์ฆ
ํํฐ๋ก ํ๋ ์ด์์ ๊ฐ์ฒด ๋ฐํ
Model.objects.filter(field_name=some_param)
์ค์ฒฉ ๋๊ธ ๊ตฌํ
DRF ๊ฒ์๊ธ, ๋๊ธ ์ค์ต
React Form ๋ฐ์ดํฐ ์ ์ก
TinyURL๊ฐ์ URL ๋จ์ถ ์๋น์ค๋ฅผ ์ค๊ณํ๊ธฐ
Django REST Framework OneToMany ๊ด๊ณ Serializer์ ์ถ๊ฐ
Tags
Create an abstract model in Django
Django Model ์์ (Inheritance)
BooleanField
Python Dictionary ํ์ฉ
์ฝ๋ ์๋ ์ ๋ ฌ , ํฌ๋ฉงํ
์ฅ๊ณ ์์์ ๊ถํ
ํค๋ ํ ํฐ์ ์ ์ ์ ๋ณด ๊ฐ์ ธ์ค๊ธฐ
user = self.context['request'].user
Django exists check
Notification - ์๋ฆผ
Synchronize Postman collections with the API
CDN
Implementing an Interface in Python
์ญ์ฐธ์กฐ ๋ฐ์ดํฐ ๊ฐ์ ธ์ค๊ธฐ
How to change Djnago APp name
Django๋ฅผ MySQL ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์ฐ๊ฒฐ
Django create superuser
Trouble Shooting
Django naming convention
Settings
Ref
[Django] #1 Django ์๋ฒ ์คํํ๊ธฐ
[django] ์ด๋๋ฏผ ๊ณ์ ์์ฑ ๋ฐ ๋น๋ฐ๋ฒํธ ์ด๊ธฐํ
Build your first REST API with Django REST Framework
https://github.com/bennett39/drf_tutorial
[ํ์ด์ฌ ์ฅ๊ณ ] _mysql' is not defined ํธํ์๋ฌ ํด๊ฒฐํ๊ธฐ
Django์์ Swagger ์ ์ฉ (drf-yasg ์ฐ๊ธฐ ๊ผญ^^;)
Django Rest Framework ํ์ฉํ๊ธฐ 2 - @api_view
Django์์ ๋ก๊น ์ฌ์ฉํ๊ธฐ (๋ก๊ทธ๊ธฐ๋ก ํ์ผ๋ก ๋จ๊ธฐ๊ธฐ)
django logging
RESTful API in Django
Ref
django-rest-framework - snippets - django rest framework tutorial
[Django] ViewSet ๊ณผ Router
Django REST Framework ํํ ๋ฆฌ์ผ 6 (ViewSets & Routers)
DRF3 ํํ ๋ฆฌ์ผ
6 - ๋ทฐ์ ๊ณผ ๋ผ์ฐํฐ
2 - ์์ฒญ๊ณผ ์๋ต
02. Django Rest Framework, Serializer, View ๊ฐ๋ ์ตํ๊ธฐ
10 things you need to know to effectively use Django Rest Framework
Build a REST API in 30 minutes with Django REST Framework
Django REST framework๋ก ๊ฒ์ํ CRUD (1) | board
Django REST Framework ํํ ๋ฆฌ์ผ (Quickstart)
Django REST Framework - Serializer relations
Python ๊ฐ์ํ๊ฒฝ - mac
Trouble Shooting 2
tq
The serializer field might be named incorrectly and not match any attribute or key on the BoundField
instance. Original exception text was: 'BoundField' object has no attribute ''
BoundField
instance. Original exception text was: 'BoundField' object has no attribute ''[django] Forbidden (CSRF cookie not set.) ์ค๋ฅ ํด๊ฒฐํ๊ธฐ
You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to ''(note the trailing slash), or set APPEND_SLASH=False in your Django settings.
html๋ก ์ฃผ๋๊ฑฐ json์ผ๋ก ์ฃผ๋๋ก serialize ํด์ค์ผ ํ๋๊ฑฐ์์.
[Python][Django] TypeError : ~ is not JSON serializable ํด๊ฒฐ ๋ฐฉ๋ฒ
python json ๋ชจ๋ ์ฌ์ฉ์ Not JSON serializable ์๋ฌ๋ฅผ ํผํ๋ ๋ฐฉ๋ฒ
TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
AttributeError: 'Page' object has no attribute 'valuesโ
[Django] ์๋ฌ : object has no attribute subject
django has no attribute subject
ํ ๋ชจ๋ธ ์๋๊ณ serilazation ์์ ํ๊ณ ์์์ด ์ด๋ผ
Django & Postman: 403 CSRF verification failed?
DRF Blank Error ํด๊ฒฐํ๊ธฐ
save() got an unexpected keyword argument 'commit' Django Error
AssertionError: 'commit' is not a valid keyword argument to the 'save()' method. If you need to access data before committing to the database then inspect 'serializer.validated_data' instead. You can also pass additional keyword arguments to 'save()' if you need to set extra attributes on the saved model instance. For example: 'serializer.save(owner=request.user)'.โ
django rest postman ์ด ํ๋๋ ํ์ ํญ๋ชฉ์ ๋๋ค
Django rest framework_2. ํฌ์คํธ๋งจ(POSTMAN) ์์ํ๊ธฐ
link
Django Serializer is_valid
[Django] ์ฅ๊ณ Form ๊ณผ Serializer ๋น๊ต
DRF ์คํ ๊ด๋ จ ์๋ฌ๋ค
JsonResponse Django Rest Framework
Django REST framework JSON response
[Django] 403 forbidden Error ํด๊ฒฐํ๊ธฐ (CSRF token)
Request and response objects
Django์์ JSON ์๋ต ์์ฑ
django multi database
์ฅ๊ณ ๊ด๋ฆฌ์
Django, Form ์ด๋ ๋ฌด์์ธ๊ฐ ?
Django REST framework official docs
Many-to-Many Modeled REST API with Django Rest Framework
Ref
this is github repo
django rest framework many to many create
The right way to use a ManyToManyField in Django
Field defines a relation with model '', which is either not installed, or is abstract.
Django 9. ManyToManyField 1
์ฅ๊ณ ํ ํฐ ์ธ์ฆ
Pagination
Searching
Django REST Framework - Serializers
Django REST Framework + Postman
Django security checklist
checklist ํ๋์ฉ ๋นผ๋ด์ ์์ฑํ๊ธฐ
Last updated