From 6e4c92c03c871e7b052da33480105f6dcedeae6d Mon Sep 17 00:00:00 2001
From: Marco Ciotola <848222@stud.unive.it>
Date: Mon, 4 Mar 2019 23:10:06 +0100
Subject: [PATCH] Silence urls.W002 warning.

Slashes aren't deemed necessary at start of URL patterns, but the actual check author recognized the too-strict approach for his check: https://stackoverflow.com/a/41450355
---
 settings.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/settings.py b/settings.py
index 82d6d4d..34c87d1 100644
--- a/settings.py
+++ b/settings.py
@@ -114,6 +114,8 @@ if get_from_env('HSTS', '0') == '1':
 SECURE_BROWSER_XSS_FILTER = True
 SECURE_CONTENT_TYPE_NOSNIFF = True
 
+SILENCED_SYSTEM_CHECKS = ['urls.W002']
+
 MIDDLEWARE_CLASSES = (
     # make all things SSL
     #'sslify.middleware.SSLifyMiddleware',
-- 
GitLab