一个django应用程序,用于从django管理站点上载大型文件。
django-admin-resumable-js的Python项目详细描述
Django管理可恢复js
==============
…图片::https://api.travis-ci.org/jonatron/django-admin-resumable-js.svg?branch=master
:目标:https://travis ci.org/jonatron/django admin resumable js
django admin resumable js是一款django应用程序,允许您从django admin站点上载大型文件。
图片::https://github.com/jonatron/django-admin-resumable-js/raw/master/screenshot.png?raw=true
installation
----
*pip install django admin resumable js
*在“已安装的应用程序”中添加“admin resumable”`
*add``url(r'^admin resumable/',include('admin resumable.url'),``在您的url.py
*添加一个模型字段,例如:`` from admin_resumble.fields import modelmadminresumblefilefield``
:
foo类(models.model):
bar=models.charfield(max_length=200)
foo=modelmadminresumblefilefield()
可选:
*设置`` admin_resumble_subdir`,默认值为``“admin_uploaded”`
*使用upload_代替admin_resumble_subdir
*设置“admin_resumble_chunksize`”,默认值为“1*1024*1024”``
*设置“admin_resumble_storage`”,默认值为“django.core.files.storage.filesystemstorage`”(必须是“django.core.files.storage.filesystemstorage”的子类,或接受“location”init参数)。如果您不希望在服务器上创建新文件的默认文件系统存储行为(在连续上载同一文件时,文件名后面附加有“1”、“2”等),则可以使用此选项将存储类设置为类似https://djangospinpets.org/snippets/976/
*set``admin_resumble_show_thumb``,则默认值为false。在“当前:”链接旁边显示缩略图。
由于多部分
解析器的工作方式:https://github.com/django/django/blob/master/django/http/multipart parser.py
这可能导致无法上载文件或损坏文件,
视情况而定。
compatibility
-
1.2:
{py27,py32,py33,py34,py35}-django{1.6,1.7,1.8,1.9}.
python 3.2和3.3支持django 1.8.
2.0:
{py27,py34,py35}-django{1.8,1.9,1.10,1.11}
3.0:
{py27,py35,py36,py37}-django{1.11,2.0,2.1}
python 2.7支持到django 1.11
在本地运行测试到可恢复的.js https://github.com/23/resumable.js
==============
…图片::https://api.travis-ci.org/jonatron/django-admin-resumable-js.svg?branch=master
:目标:https://travis ci.org/jonatron/django admin resumable js
django admin resumable js是一款django应用程序,允许您从django admin站点上载大型文件。
图片::https://github.com/jonatron/django-admin-resumable-js/raw/master/screenshot.png?raw=true
installation
----
*pip install django admin resumable js
*在“已安装的应用程序”中添加“admin resumable”`
*add``url(r'^admin resumable/',include('admin resumable.url'),``在您的url.py
*添加一个模型字段,例如:`` from admin_resumble.fields import modelmadminresumblefilefield``
:
foo类(models.model):
bar=models.charfield(max_length=200)
foo=modelmadminresumblefilefield()
可选:
*设置`` admin_resumble_subdir`,默认值为``“admin_uploaded”`
*使用upload_代替admin_resumble_subdir
*设置“admin_resumble_chunksize`”,默认值为“1*1024*1024”``
*设置“admin_resumble_storage`”,默认值为“django.core.files.storage.filesystemstorage`”(必须是“django.core.files.storage.filesystemstorage”的子类,或接受“location”init参数)。如果您不希望在服务器上创建新文件的默认文件系统存储行为(在连续上载同一文件时,文件名后面附加有“1”、“2”等),则可以使用此选项将存储类设置为类似https://djangospinpets.org/snippets/976/
*set``admin_resumble_show_thumb``,则默认值为false。在“当前:”链接旁边显示缩略图。
由于多部分
解析器的工作方式:https://github.com/django/django/blob/master/django/http/multipart parser.py
这可能导致无法上载文件或损坏文件,
视情况而定。
compatibility
-
1.2:
{py27,py32,py33,py34,py35}-django{1.6,1.7,1.8,1.9}.
python 3.2和3.3支持django 1.8.
2.0:
{py27,py34,py35}-django{1.8,1.9,1.10,1.11}
3.0:
{py27,py35,py36,py37}-django{1.11,2.0,2.1}
python 2.7支持到django 1.11
在本地运行测试到可恢复的.js https://github.com/23/resumable.js