Merge pull request #275 from VojtechPetru/update/collectstatic-ignore_pycache

ignore .pyc files in collectstatic management command
This commit is contained in:
Emil Stenström 2023-04-22 08:02:52 +02:00 committed by GitHub
commit c865726b5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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",
]