From 0153af7339379ce298ff394eeefabe28b879efd6 Mon Sep 17 00:00:00 2001 From: pac7 <47831526-pac7@users.noreply.replit.com> Date: Sun, 21 Sep 2025 18:38:43 +0000 Subject: [PATCH] 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 --- .replit | 4 ++++ backend/config/django/base.py | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/.replit b/.replit index 61cd4dfb..fdf1fdc3 100644 --- a/.replit +++ b/.replit @@ -39,6 +39,10 @@ externalPort = 80 localPort = 34277 externalPort = 3000 +[[ports]] +localPort = 37885 +externalPort = 3002 + [[ports]] localPort = 45245 externalPort = 3001 diff --git a/backend/config/django/base.py b/backend/config/django/base.py index f5020ffb..46227794 100644 --- a/backend/config/django/base.py +++ b/backend/config/django/base.py @@ -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