Auto-created primary key used when not defining a primary key type 에러 해결법
by 조대리 2022. 9. 22. 23:12
문제
보안 접속인 https를 사용할 수 있게 해주는 'Let's Encrypt' SSL 인증서 관리 프로그램에서 사소한 오류가 발생했다고 메시지가 표시됐다.
오류 아래에 친절하게 해결할 수 있는 방법도 제시해주긴 한다.
WARNINGS: letsencrypt.AcmeChallenge: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the LetsEncryptConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
해결
해결 방법은 간단하다. Django에 있는 'settings.py' 파일에 아래 내용을 추가하면 된다.
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
판다스(Pandas DataFrame) 특정 글자 변환, 없애기(replace) (0) | 2022.10.07 |
---|---|
django.db.utils.OperationalError: (1050, "Table already exists") migrate 오류 해결법 (0) | 2022.09.27 |
셀레니움(selenium) webdriver 없이 작동하게 만드는 방법(크롬 드라이버) (0) | 2022.09.10 |
Python Django 프로젝트 만들기(+urls 설정) (0) | 2022.06.03 |
Python Django 설치하기(+wheel 패키지) (0) | 2022.06.03 |
2023.05.21 14:22
2022.05.12 20:06
2022.04.02 12:00
2016.08.02 21:13
2022.05.14 21:16
2022.10.23 22:55
2022.03.03 17:30
2022.10.25 10:18
2022.02.16 21:55
2015.01.20 20:42
IT/Python
Financial/국내주식
Financial/시장
일상
IT/Util and 꿀팁
일상/여행
Financial/국내주식
Financial/해외주식
Financial/부동산
IT/Python
댓글 영역