Merge "Add python filter to eliminate deprecation warnings"

This commit is contained in:
Zuul 2022-09-24 20:14:11 +00:00 committed by Gerrit Code Review
commit e2e135c2cb
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@ from horizon.utils import secret_key
from openstack_dashboard import exceptions
from openstack_dashboard.settings import HORIZON_CONFIG
{% if not (debug | bool) %}
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
{% endif %}
DEBUG = {{ debug }}
TEMPLATE_DEBUG = DEBUG