Skip to content

Commit

Permalink
Silence unnecessary schema generation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Oct 22, 2024
1 parent e6eda1b commit de682ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conf/configs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import os
import socket
import warnings
from urllib.parse import urlparse

from corsheaders.defaults import default_headers
Expand Down Expand Up @@ -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"<class '.*'> is not compatible with schema generation",
module=r'django_filters\.rest_framework')

# Static files (CSS, JavaScript, Images)

STATIC_ROOT = 'static/'
Expand Down

0 comments on commit de682ad

Please sign in to comment.