Loading django/core/management/commands/makemessages.py +3 −5 Original line number Diff line number Diff line Loading @@ -227,10 +227,6 @@ class Command(BaseCommand): ignore_patterns = options.get('ignore_patterns') if options.get('use_default_ignore_patterns'): ignore_patterns += ['CVS', '.*', '*~', '*.pyc'] base_path = os.path.abspath('.') for path in (settings.MEDIA_ROOT, settings.STATIC_ROOT): if path and path.startswith(base_path): ignore_patterns.append('%s*' % path[len(base_path) + 1:]) self.ignore_patterns = list(set(ignore_patterns)) # Avoid messing with mutable class variables Loading Loading @@ -376,9 +372,11 @@ class Command(BaseCommand): norm_patterns.append(p) all_files = [] ignored_roots = [os.path.normpath(p) for p in (settings.MEDIA_ROOT, settings.STATIC_ROOT)] for dirpath, dirnames, filenames in os.walk(root, topdown=True, followlinks=self.symlinks): for dirname in dirnames[:]: if is_ignored(os.path.normpath(os.path.join(dirpath, dirname)), norm_patterns): if (is_ignored(os.path.normpath(os.path.join(dirpath, dirname)), norm_patterns) or os.path.join(os.path.abspath(dirpath), dirname) in ignored_roots): dirnames.remove(dirname) if self.verbosity > 1: self.stdout.write('ignoring directory %s\n' % dirname) Loading docs/releases/1.7.1.txt +3 −0 Original line number Diff line number Diff line Loading @@ -132,3 +132,6 @@ Bugfixes * Fixed a regression when feeding the Django test client with an empty data string (:ticket:`21740`). * Fixed a regression in :djadmin:`makemessages` where static files were unexpectedly ignored (:ticket:`23583`). tests/i18n/commands/someapp/static/javascript.js 0 → 100644 +1 −0 Original line number Diff line number Diff line gettext('Static content inside app should be included.') tests/i18n/commands/static/javascript_ignored.js 0 → 100644 +1 −0 Original line number Diff line number Diff line gettext('Content from STATIC_ROOT should not be included.') tests/i18n/commands/static_root/static_ignored.html→tests/i18n/commands/static/static_ignored.html +0 −0 File moved. Loading
django/core/management/commands/makemessages.py +3 −5 Original line number Diff line number Diff line Loading @@ -227,10 +227,6 @@ class Command(BaseCommand): ignore_patterns = options.get('ignore_patterns') if options.get('use_default_ignore_patterns'): ignore_patterns += ['CVS', '.*', '*~', '*.pyc'] base_path = os.path.abspath('.') for path in (settings.MEDIA_ROOT, settings.STATIC_ROOT): if path and path.startswith(base_path): ignore_patterns.append('%s*' % path[len(base_path) + 1:]) self.ignore_patterns = list(set(ignore_patterns)) # Avoid messing with mutable class variables Loading Loading @@ -376,9 +372,11 @@ class Command(BaseCommand): norm_patterns.append(p) all_files = [] ignored_roots = [os.path.normpath(p) for p in (settings.MEDIA_ROOT, settings.STATIC_ROOT)] for dirpath, dirnames, filenames in os.walk(root, topdown=True, followlinks=self.symlinks): for dirname in dirnames[:]: if is_ignored(os.path.normpath(os.path.join(dirpath, dirname)), norm_patterns): if (is_ignored(os.path.normpath(os.path.join(dirpath, dirname)), norm_patterns) or os.path.join(os.path.abspath(dirpath), dirname) in ignored_roots): dirnames.remove(dirname) if self.verbosity > 1: self.stdout.write('ignoring directory %s\n' % dirname) Loading
docs/releases/1.7.1.txt +3 −0 Original line number Diff line number Diff line Loading @@ -132,3 +132,6 @@ Bugfixes * Fixed a regression when feeding the Django test client with an empty data string (:ticket:`21740`). * Fixed a regression in :djadmin:`makemessages` where static files were unexpectedly ignored (:ticket:`23583`).
tests/i18n/commands/someapp/static/javascript.js 0 → 100644 +1 −0 Original line number Diff line number Diff line gettext('Static content inside app should be included.')
tests/i18n/commands/static/javascript_ignored.js 0 → 100644 +1 −0 Original line number Diff line number Diff line gettext('Content from STATIC_ROOT should not be included.')
tests/i18n/commands/static_root/static_ignored.html→tests/i18n/commands/static/static_ignored.html +0 −0 File moved.