diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py
index 19258fb..f055c56 100644
|
a
|
b
|
STATICFILES_FINDERS = (
|
| 603 | 603 | 'django.contrib.staticfiles.finders.AppDirectoriesFinder', |
| 604 | 604 | # 'django.contrib.staticfiles.finders.DefaultStorageFinder', |
| 605 | 605 | ) |
| | 606 | |
| | 607 | STATICFILES_IGNORE_PATTERNS = ['CVS', '.*', '*~'] |
diff --git a/django/contrib/staticfiles/management/commands/collectstatic.py b/django/contrib/staticfiles/management/commands/collectstatic.py
index 7c3de80..304c676 100644
|
a
|
b
|
from __future__ import unicode_literals
|
| 2 | 2 | |
| 3 | 3 | import os |
| 4 | 4 | import sys |
| | 5 | import warnings |
| 5 | 6 | from optparse import make_option |
| 6 | 7 | |
| | 8 | from django.conf import settings |
| 7 | 9 | from django.core.files.storage import FileSystemStorage |
| 8 | 10 | from django.core.management.base import CommandError, NoArgsCommand |
| 9 | 11 | from django.utils.encoding import smart_text |
| … |
… |
class Command(NoArgsCommand):
|
| 70 | 72 | self.symlink = options['link'] |
| 71 | 73 | self.clear = options['clear'] |
| 72 | 74 | self.dry_run = options['dry_run'] |
| 73 | | ignore_patterns = options['ignore_patterns'] |
| 74 | | if options['use_default_ignore_patterns']: |
| 75 | | ignore_patterns += ['CVS', '.*', '*~'] |
| | 75 | |
| | 76 | ignore_patterns = settings.STATICFILES_IGNORE_PATTERNS |
| | 77 | ignore_patterns.extend(options['ignore_patterns']) |
| | 78 | if not options['use_default_ignore_patterns']: |
| | 79 | # Hard-coded patterns which were default before |
| | 80 | ignore_patterns = set(ignore_patterns) - set(['CVS', '.*', '*~']) |
| | 81 | warnings.warn("--no-default-ignore option will be ignored in" |
| | 82 | " future. Please override STATICFILES_IGNORE_PATTERS" |
| | 83 | " if you don't want to use default patterns.", |
| | 84 | PendingDeprecationWarning) |
| 76 | 85 | self.ignore_patterns = list(set(ignore_patterns)) |
| 77 | 86 | self.post_process = options['post_process'] |
| 78 | 87 | |
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt
index 806d135..6e98bc2 100644
|
a
|
b
|
following settings:
|
| 26 | 26 | * :setting:`STATIC_ROOT` |
| 27 | 27 | * :setting:`STATIC_URL` |
| 28 | 28 | * :setting:`STATICFILES_DIRS` |
| | 29 | * :setting:`STATICFILES_IGNORE_PATTERNS` |
| 29 | 30 | * :setting:`STATICFILES_STORAGE` |
| 30 | 31 | * :setting:`STATICFILES_FINDERS` |
| 31 | 32 | |
| … |
… |
Some commonly used options are:
|
| 99 | 100 | Don't ignore the common private glob-style patterns ``'CVS'``, ``'.*'`` |
| 100 | 101 | and ``'*~'``. |
| 101 | 102 | |
| | 103 | .. versionchanged:: 1.7 |
| | 104 | |
| | 105 | This option is deprecated and will be ignored in future. Please set |
| | 106 | :setting:`STATICFILES_IGNORE_PATTERNS` instead. |
| | 107 | |
| 102 | 108 | For a full list of options, refer to the commands own help by running:: |
| 103 | 109 | |
| 104 | 110 | $ python manage.py collectstatic --help |
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index c970311..e606420 100644
|
a
|
b
|
This would allow you to refer to the local file
|
| 2547 | 2547 | |
| 2548 | 2548 | <a href="{{ STATIC_URL }}downloads/polls_20101022.tar.gz"> |
| 2549 | 2549 | |
| | 2550 | .. setting:: STATICFILES_IGNORE_PATTERNS |
| | 2551 | |
| | 2552 | STATICFILES_IGNORE_PATTERNS |
| | 2553 | --------------------------- |
| | 2554 | |
| | 2555 | .. versionadded:: 1.7 |
| | 2556 | |
| | 2557 | Default: ``['CVS', '.*', '*~']`` |
| | 2558 | |
| | 2559 | List of file patterns which will be ignored when collecting static files with |
| | 2560 | the :djadmin:`collectstatic` management command. |
| | 2561 | |
| | 2562 | This list can be further extended with command line option ``-i``. |
| | 2563 | |
| 2550 | 2564 | .. setting:: STATICFILES_STORAGE |
| 2551 | 2565 | |
| 2552 | 2566 | STATICFILES_STORAGE |