django-pipeline存储后端的扩展,可以忽略缺失的文件
项目描述
django-pipeline存储后端的扩展,可以忽略缺失的文件。
这是为了解决在使用第三方Django应用(例如,在css中缺失文件)的同时使用django-pipeline的问题而创建的。
例如,对同时使用djangobb_forum和pipeline的应用运行collectstatic(在撰写本文时)会产生:
$ django-admin.py collectstatic ... ValueError: The file 'djangobb_forum/themes/default/img/active_forum.gif' could not be found with <nest.apps.core.storages.PipelineCachedStorage object at 0x108d06090>.
安装
使用pip进行安装
pip install django-pipeline-forgiving
用法
在settings.py中设置
STATICFILES_STORAGE = 'django_pipeline_forgiving.storages.PipelineForgivingStorage'
致谢
由Adam Charnock编写。
django-pipeline-forgiving使用seed打包。
项目详情
关闭
django-pipeline-forgiving-1.0.0.tar.gz的哈希
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 60dfaa304876d009f532e17ade881b0d81e245b9366c734ce19ede444172ab23 |
|
MD5 | fc5d00265352a287c4e856e0c22f41c2 |
|
BLAKE2b-256 | 8d89fd6a7d8e86db35d6741c1e76492d18b610c901990417682f953d941130fa |