Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Ignore favicon.ico if it causes a 404

Roland Geiderc6f868376952
diff --git a/wger/settings_global.py b/wger/settings_global.py
index a7207ab23..41d67d5f0 100644
--- a/wger/settings_global.py
+++ b/wger/settings_global.py
@@ -14,6 +14,7 @@
#
# You should have received a copy of the GNU Affero General Public License
+import re
from wger.main import fs2unicode
'''
@@ -328,3 +329,11 @@ REST_FRAMEWORK = {
#
CORS_ORIGIN_ALLOW_ALL = True
CORS_URLS_REGEX = r'^/api/.*$'
+
+
+#
+# Ignore these URLs if they cause 404
+#
+IGNORABLE_404_URLS = (
+ re.compile(r'^/favicon\.ico$'),
+)