mirror of
https://github.com/django-components/django-components.git
synced 2025-08-03 13:58:16 +00:00
Merge pull request #275 from VojtechPetru/update/collectstatic-ignore_pycache
ignore .pyc files in collectstatic management command
This commit is contained in:
commit
c865726b5e
1 changed files with 5 additions and 1 deletions
|
@ -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",
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue