Files
mayan-edms/mayan/apps/appearance/management/commands/preparestatic.py
T
2019-05-06 03:13:53 -04:00

22 lines
732 B
Python

from __future__ import unicode_literals
from django.core import management
IGNORE_LIST = [
'AUTHORS*', 'CHANGE*', 'CONTRIBUT*', 'CODE_OF_CONDUCT*', 'Grunt*',
'LICENSE*', 'MAINTAIN*', 'README*', '*.html*', '*.less', '*.md', '*.nupkg',
'*.nuspec', '*.scss*', '*.sh', '*tests*', 'bower*', 'composer.json*',
'demo*', 'docs', 'grunt*', 'gulp*', 'install', 'less', 'package.json*',
'package-lock*', 'test', 'tests', 'variable*',
]
class Command(management.BaseCommand):
help = 'Call the collectstatic command with some sane defaults.'
def handle(self, *app_labels, **options):
management.call_command(
command_name='collectstatic', ignore=IGNORE_LIST,
clear=True
)