Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # 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 Last modified: 2024/10/05 06:15by 127.0.0.1