Improve compatibility with user authentication providers

Suppress specific deprecation warnings from dj_rest_auth related to user settings for better compatibility with django-allauth.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9bc9dd7a-5328-4cb7-91de-b3cb33a0c48c
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
This commit is contained in:
pac7
2025-09-21 18:38:43 +00:00
committed by pacnpal
parent 821c94bc76
commit 0153af7339
2 changed files with 12 additions and 0 deletions

View File

@@ -39,6 +39,10 @@ externalPort = 80
localPort = 34277
externalPort = 3000
[[ports]]
localPort = 37885
externalPort = 3002
[[ports]]
localPort = 45245
externalPort = 3001

View File

@@ -5,9 +5,17 @@ Common settings shared across all environments.
from datetime import timedelta
import sys
import warnings
from pathlib import Path
from decouple import config
# Suppress django-allauth deprecation warnings for dj_rest_auth compatibility
# TODO: Remove this once dj_rest_auth is updated to work with the new ACCOUNT_SIGNUP_FIELDS format
warnings.filterwarnings(
"ignore",
message=r"app_settings\.(USERNAME|EMAIL)_REQUIRED is deprecated",
module="dj_rest_auth.registration.serializers"
)
# Initialize environment variables with better defaults