From de682ad21112a6fba7ccd04d567b632030745463 Mon Sep 17 00:00:00 2001 From: Alex Laird Date: Tue, 22 Oct 2024 16:40:06 -0500 Subject: [PATCH] Silence unnecessary schema generation warnings. --- conf/configs/common.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/configs/common.py b/conf/configs/common.py index f8877f12..b2fdba65 100644 --- a/conf/configs/common.py +++ b/conf/configs/common.py @@ -8,6 +8,7 @@ import os import socket +import warnings from urllib.parse import urlparse from corsheaders.defaults import default_headers @@ -269,6 +270,10 @@ DEBUG = config('PLATFORM_DEBUG', 'False') == 'True' +# Ignore schema generation warnings, this is related to libraries that won't be updated +warnings.filterwarnings('ignore', r" is not compatible with schema generation", + module=r'django_filters\.rest_framework') + # Static files (CSS, JavaScript, Images) STATIC_ROOT = 'static/'