일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- codebuild cliend_error
- 'message': 'authentication failed'
- 오블완
- fcm multicast
- ncp 401 authentication failed
- rds 파라미터그룹
- 파이썬여러버전변경
- 파이썬버전여러개
- route53 서브도메인
- ncp authentication failed
- vscode 소스제어
- 맥북파이썬여러버전
- codepipeline 오류
- ncp api 응답오류
- vscode시계아이콘
- 티스토리챌린지
- {'error': {'errorcode': '200'
- codebuild no matching artifact paths found
- vscode무한로딩
- fcm push
- vscode소스제어 무한로딩
- 파이썬버전변경
- rds character_set 변경
- rds utf8mb4 변경
- 네이버클라우드 authentication failed
- 파이썬 설치경로 변경
- command did not exit successfully docker-compose -f docker-compose.yml build exit status 1
- 파이썬 경로 수정
- fcm 멀티푸시
- 'details': 'invalid authentication information.'}}
- Today
- Total
목록Django (18)
All that I've dreamed of
DRF의 페이지네이션과 사용법이 매우 유사해요공식문서 참고는 아래 https://django-ninja.dev/guides/response/pagination/ Pagination - Django NinjaDjango Ninja comes with a pagination support. This allows you to split large result sets into individual pages. To apply pagination to a function - just apply paginate decorator: from ninja.pagination import paginate @api.get('/users', response=List[UserScdjango-ninja.dev https://e..

static 파일들을 s3에 업로드해두면 로컬, 운영 환경에서 보다 편하게 관리할 수 있더라구요python manage.py collectstatic 명령어를 실행하면settings.py 에 설정해둔 위치에 static 폴더가 생기고 필요한 static 파일들이 폴더에 모이는데 s3 업로드 설정을 하면명렁어를 실행했을 때 s3에 업로드가 됩니다어드민 파일들 특히 사진, 영상, 파일 등의 미디어파일들을 관리할 때 유용하답니다 :) 1. django-storages 설치 📍 django-storages 는요... s3 등 외부 스토리지 서비스와 django 프로젝트를 통합하여 사용할 수 있는 라이브러리예요. django storages 라이브러리를 설치하면 django 에서 기본적으로 제공하는 STA..

데이터베이스를 싹 삭제하고 migrate 를 진행하던 중 아래와 같은 오류가 발생하면서 migrate 가 중단되었어요 (데이터베이스는 mariaDB를 사용하고 있어요) django.db.utils.DataError: (1366, "Incorrect string value: '\\xED\\x9A\\x8C\\xEC\\x9B\\x90' for column `dev_db`.`auth_permission`.`name` at row 1") ✅ 오류발생이유 MySQL 또는 MariaDB 데이터베이스에서 UTF-8 이외의 문자를 저장하려고 시도했을 때 발생할 수 있습니다. 일반적으로 Django 프로젝트에서 발생하는 경우 데이터베이스의 문자열 필드에 유니코드 문자가 저장되려고 할 때 발생합니다. DBeaver 에서 테..

django의 가장 큰 장점 중 하나로 꼽히는 어드민! 한 땀 한 땀 수고할 필요 없이 정의된 모델만으로 관리자 홈페이지 뚝딱 만들어주니 얼마나 편하게요? 😎 기본 어드민에 list_filter를 추가해 주면 추가한 필터의 데이터를 기반으로 필터링한 데이터를 볼 수 있어요. 아래처럼 저는 requestedAt (결제요청일) 을 list_filter에 추가해 봤어요 @admin.register(PaySubscription) class SubscriptionAdmin(admin.ModelAdmin): list_display = ("get_user", "orderName", "amount", "requestedAt", "get_is_active", "status") readonly_fields = ['orde..