chore: Add DEFAULT_AUTO_FIELD to settings.py

This commit is contained in:
Jennifer Richards 2023-05-12 18:03:28 -03:00
parent 4cfe1c17d0
commit 9d21196adc
No known key found for this signature in database
GPG key ID: 9B2BF5C5ADDA6A6E

View file

@ -12,6 +12,8 @@ import datetime
import warnings
from typing import Any, Dict, List, Tuple # pyflakes:ignore
import django.db.models
warnings.simplefilter("always", DeprecationWarning)
warnings.filterwarnings("ignore", message="'urllib3\\[secure\\]' extra is deprecated")
warnings.filterwarnings("ignore", message="The logout\\(\\) view is superseded by")
@ -102,6 +104,11 @@ USE_I18N = False
USE_TZ = True
# Default primary key field type to use for models that dont have a field with primary_key=True.
# In the future (relative to 4.2), the default will become 'django.db.models.BigAutoField.'
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
if SERVER_MODE == 'production':
MEDIA_ROOT = '/a/www/www6s/lib/dt/media/'
MEDIA_URL = 'https://www.ietf.org/lib/dt/media/'