From 814f5266585de58de364876ca1a3c2a36222e462 Mon Sep 17 00:00:00 2001 From: vojtech Date: Sat, 22 Apr 2023 01:27:35 +0200 Subject: [PATCH] ignore .pyc files in collectstatic --- django_components/safer_staticfiles/apps.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/django_components/safer_staticfiles/apps.py b/django_components/safer_staticfiles/apps.py index ddc30fb9..28c3b623 100644 --- a/django_components/safer_staticfiles/apps.py +++ b/django_components/safer_staticfiles/apps.py @@ -15,4 +15,8 @@ class SaferStaticFilesConfig(StaticFilesConfig): default = ( True # Ensure that _this_ app is registered, as opposed to parent cls. ) - ignore_patterns = StaticFilesConfig.ignore_patterns + ["*.py", "*.html"] + ignore_patterns = StaticFilesConfig.ignore_patterns + [ + "*.py", + "*.html", + "*.pyc", + ]