mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 07:11:08 -05:00
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:
4
.replit
4
.replit
@@ -39,6 +39,10 @@ externalPort = 80
|
|||||||
localPort = 34277
|
localPort = 34277
|
||||||
externalPort = 3000
|
externalPort = 3000
|
||||||
|
|
||||||
|
[[ports]]
|
||||||
|
localPort = 37885
|
||||||
|
externalPort = 3002
|
||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 45245
|
localPort = 45245
|
||||||
externalPort = 3001
|
externalPort = 3001
|
||||||
|
|||||||
@@ -5,9 +5,17 @@ Common settings shared across all environments.
|
|||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import sys
|
import sys
|
||||||
|
import warnings
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from decouple import config
|
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
|
# Initialize environment variables with better defaults
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user