문서 보기역링크PDF로 내보내기맨 위로 이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. # DEFAULT_AUTO_FIELD {{tag>django model id autofield}} <code> brand.User: (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 BrandConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. </code> <code> # settings.py DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" </code> 기존대로 유지하고 싶은 경우에는 <code> # settings.py DEFAULT_AUTO_FIELD = "django.db.models.AutoField" </code> ## Ref - [BigAutoField](https://docs.djangoproject.com/en/3.2/ref/models/fields/#bigautofield) - [AutoField](https://docs.djangoproject.com/en/3.2/ref/models/fields/#autofield) - https://dev.to/rubyflewtoo/upgrading-to-django-3-2-and-fixing-defaultautofield-warnings-518n open/default-auto-field.txt 마지막으로 수정됨: 2021/06/24 04:26저자 127.0.0.1