Ticket #22891: collectstatic_clear.patch

File collectstatic_clear.patch, 1.9 KB (added by Coen van der Kamp, 10 years ago)

Collect static clear message.

  • django/contrib/staticfiles/management/commands/collectstatic.py

    diff --git a/django/contrib/staticfiles/management/commands/collectstatic.py b/django/contrib/staticfiles/management/commands/collectstatic.py
    index 2d2413e..d0497c4 100644
    a b class Command(BaseCommand):  
    154154            message.append('.\n\n')
    155155
    156156        if self.clear:
    157             message.append('This will DELETE EXISTING FILES!\n')
     157            message.append('This will DELETE ALL EXISTING FILES!\n')
    158158        else:
    159159            message.append('This will overwrite existing files!\n')
    160160
  • django/contrib/staticfiles/management/commands/collectstatic.py

    diff --git a/django/contrib/staticfiles/management/commands/collectstatic.py b/django/contrib/staticfiles/management/commands/collectstatic.py
    index 2d2413e..36da1e5 100644
    a b class Command(BaseCommand):  
    154154            message.append('.\n\n')
    155155
    156156        if self.clear:
    157             message.append('This will DELETE EXISTING FILES!\n')
     157            message.append('This will DELETE ALL EXISTING FILES in this directory!\n')
    158158        else:
    159159            message.append('This will overwrite existing files!\n')
    160160
  • django/contrib/staticfiles/management/commands/collectstatic.py

    diff --git a/django/contrib/staticfiles/management/commands/collectstatic.py b/django/contrib/staticfiles/management/commands/collectstatic.py
    index 2d2413e..87ea86d 100644
    a b class Command(BaseCommand):  
    154154            message.append('.\n\n')
    155155
    156156        if self.clear:
    157             message.append('This will DELETE EXISTING FILES!\n')
     157            message.append('This will DELETE ALL FILES in the STATIC_ROOT directory!\n')
    158158        else:
    159159            message.append('This will overwrite existing files!\n')
    160160
Back to Top