跳转到主要内容

UNIX命令行工具,用于bash/shell实用工具单元测试

项目描述

version

pyversions license

作者: Pahaz Blinov

仓库: https://github.com/pahaz/django-smart-collectstatic/

微修复Django manage.py collectstatic命令。

此修复使用COPY和LINK策略收集静态文件。

如果静态文件位于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

以将其安装到您的环境中。

要从源安装,克隆仓库并运行

python setup.py install

如果您没有pip,您可以安装它

典型用例

我在Docker容器内部使用它。用于收集Django静态。

Dockerfile

...
RUN python3 manage.py smartcollectstatic --noinput --link
...

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

django-smart-collectstatic-0.1.0.tar.gz (4.7 kB 查看哈希值)

上传时间: 来源

由以下机构支持