用于bash/shell utils单元测试的unix命令行工具
django-smart-collectstatic的Python项目详细描述
author:Pahaz Blinov
repo:https://github.com/pahaz/django-smart-collectstatic/
micro fix django manage.py collectstatic命令。
此修补程序使用复制和链接策略收集静态文件。
如果settings.base_dir中的静态文件将被链接。 在另一种情况下,它将被铜。
它只在django 1.9、1.10和python 3.4、3.5上进行了测试
安装
django-smart-collectstatic在pypi上,所以只需运行:
pip install django-smart-collectstatic
或
easy_install django-smart-collectstatic
在您的环境中安装它。
要从源安装,请克隆 repo然后运行:
python setup.py install
如果您没有pip您可以install it
典型用例
我用在码头集装箱里。对于callectg django static。
文档文件:
... RUN python3 manage.py smartcollectstatic --noinput --link ...