{
"info": {
"author": "",
"author_email": "",
"bugtrack_url": null,
"classifiers": [
"Framework :: Django :: 1.8"
],
"description": "# Changelog\r\n\r\n### 03-04-2016 v4.1.1 \r\n* Can delete folder with all items and folders inside it recursively.\r\n\r\n### 03-04-2016 v4.1\r\n* Python 2.7 support added by newbie(me). Poorly tested on Django(1.8.11) with Suit theme.\r\n\r\n### 11-17-2014 v4.0.6\r\n* Gave FileBrowseField a default max_length of 255. Can be overridden in declaration.\r\n* Added a `deconstruct` method that is necessary for Django 1.7 migrations.\r\n\r\n### 11-17-2014 v4.0.5\r\n* Made FileBrowseField.js more cautious about wether the \"link\" DOM object exists.\r\n\r\n### 11-13-2014 v4.0.4\r\n* Bug fix. If value on a FileBrowseField is blank, it's set to '' in the database.\r\n\r\n### 11-13-2014 v4.0.3\r\n* Bug fix. Field now returns None or empty string if blank.\r\n\r\n### 11-13-2014 v4.0.2\r\n* Bug fix. Field should have had `self.file = None` when no file is assigned.\r\n\r\n### 11-13-2014 v4.0.1\r\n* Urls are now encoded properly so they can be output anywhere.\r\n* `path` property of FileObject is still unencoded to ensure the filename is still available.\r\n\r\n### 11-11-2014 v4.0.0\r\n* BREAKS BACKWARDS COMPATIBILITY: Due to the default that files are stored with\r\n relative filenames rather than absolute.\r\n* Uploadify is deprecated; Uses qq uploader now.\r\n* Still targeting Python 3 only.\r\n* FileBrowseFields can now integrate with imagekit as it mimics an FileField \r\n interface now.\r\n\r\n### 25-08-2014 v3.4.0\r\n* Uses Pillow now.\r\n* Python 3 only now.\r\n\r\n### 02-07-2013\r\n*\tRefactor and resolved an issue on window.opener event.\r\n*\tRefactor FB_Redactor plugin.\r\n\r\n### 28-06-2013\r\n\r\n*\tSupport for django-suit\r\n*\tSupport for django-suit-ckeditor\r\n*\tSupport for django-suit-redactor\r\n*\tSupport for custom user model\r\n*\tMandatory django version higher 1.5\r\n\r\n## Basic Installation\r\n\r\n\tpip install django-media-manager-forked\r\n\r\n*\tAdd filebrowser to INSTALLED_APPS.\r\n*\tAdd the following line _before_ the admin URLS:\r\n*\t\t(r'^admin/filebrowser/', include('filebrowser.urls'))\r\n*\tCollect static files\r\n*\tAdd __uploads/__ folder to media folder or customize this setting\r\n\r\n## Suit support\r\nThe application have support for [django-suit](https://github.com/darklow/django-suit) template. To use it add on your settings files the following config:\r\n\r\nFILEBROWSER_SUIT_TEMPLATE = True \r\n\r\nFilebrowser will now use templates for django suit.\r\n\r\n## Suit CKEditor/Redactor\r\nTo use filebrowser on [django-suit-ckeditor](https://github.com/darklow/django-suit-ckeditor) or [django-suit-redactor](https://github.com/darklow/django-suit-redactor) please follow the example bellow:\r\n\r\n\t#models.py\r\n\t\r\n\tfrom django.db import models\r\n\tfrom filebrowser.fields import FileBrowseField\r\n\t\r\n\tclass MediaPublication(models.Model):\r\n \tckeditor = models.TextField(help_text='Editor CKEditor')\r\n \tredactor = models.TextField(help_text='Editor Redactor')\r\n \timage = FileBrowseField(\"Image\", max_length=200, blank=True, null=True)\r\n \timage_initialdir = FileBrowseField(\"Image (Initial Directory)\", max_length=200, directory=\"images/\", blank=True, null=True)\r\n \timage_extensions = FileBrowseField(\"Image (Extensions)\", max_length=200, extensions=['.jpg'],\r\n help_text=\"Only jpg-Images allowed.\", blank=True, null=True)\r\n \timage_format = FileBrowseField(\"Image (Format)\", max_length=200, format='Image', blank=True, null=True)\r\n \tpdf = FileBrowseField(\"PDF\", max_length=200, directory=\"documents/\", extensions=['.pdf'], format='Document',\r\n blank=True, null=True)\r\n\r\n \tclass Meta:\r\n \tordering = ['image',]\r\n \tverbose_name = 'publication'\r\n \tverbose_name_plural = 'publications'\r\n\r\nTo use on admin you need to do some litle tweeks:\r\n\r\n\t#admin.py\r\n\tfrom django.contrib import admin\r\n\tfrom django.forms import ModelForm, Media\r\n\tfrom suit_ckeditor.widgets import CKEditorWidget\r\n\tfrom suit_redactor.widgets import RedactorWidget\r\n\r\n\tfrom .models import MediaPublication\r\n\r\n\r\n\tclass Editor(ModelForm):\r\n \tclass Meta:\r\n \twidgets = {\r\n \t'ckeditor': CKEditorWidget(editor_options={'startupFocus': True}),\r\n \t'redactor': RedactorWidget(editor_options={\r\n \t'lang': 'en',\r\n \t'plugins': ['filebrowser']\r\n \t}),\r\n \t}\r\n\r\n \tclass Media:\r\n \tjs = ('filebrowser/js/FB_CKEditor.js', 'filebrowser/js/FB_Redactor.js')\r\n \tcss = {\r\n \t'all': ('filebrowser/css/suit-filebrowser.css',)\r\n \t}\r\n \t\r\n class AdminPublication(admin.ModelAdmin):\r\n \tform = Editor\r\n\r\n \tfieldsets = (\r\n \t(None, {\r\n \t'classes': ('suit-tab suit-tab-media',),\r\n \t'fields': ['image', 'image_initialdir', 'image_extensions', 'image_format', 'pdf'],\r\n \t}),\r\n \t('CKEditor', {\r\n \t'classes': ('full-width',),\r\n \t'fields': ('ckeditor',)\r\n \t}),\r\n \t('Redactor', {\r\n \t'classes': ('full-width',),\r\n \t'fields': ('redactor',)\r\n \t}),\r\n \t)\r\n\r\n \tlist_display = ('thumbnail', 'image_extensions', 'pdf')\r\n \tsuit_form_tabs = (('media', 'Media'),)\r\n\r\n \tdef thumbnail(self, obj):\r\n \tif obj.image:\r\n \treturn '
' % obj.image.url_thumbnail\r\n \telse:\r\n \treturn \"\"\r\n \tthumbnail.allow_tags = True\r\n\r\n\r\n\tadmin.site.register(MediaPublication, AdminPublication)\r\n \r\nThe most important things are on ModelForm (Media and Widgets). To use browser on CKEditor and have the button to navigate on filebrowser you only need to add the js file to Media\r\n\r\nFor Redactor you will have to add the plugin option on the widget (plugin name is mandatory - _filebrowser_ ) and add the css and js file to media.\r\n\r\nThat's it you are now ready to send all kind of files to ckeditor or redactor.\r\n\r\n### Screenshots\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#### TODO\r\n\r\nPlease this is a work in progress. If you have ideas or want to make it better please fel free to pull requests.\r\n\r\n*\tAdd more options on thumbs sizes",
"description_content_type": null,
"docs_url": null,
"download_url": "https://github.com/realsby/django-media-manager/archive/master.zip",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/realsby/django-media-manager",
"keywords": "",
"license": "",
"maintainer": "",
"maintainer_email": "",
"name": "django-media-manager-forked",
"package_url": "https://pypi.org/project/django-media-manager-forked/",
"platform": "",
"project_url": "https://pypi.org/project/django-media-manager-forked/",
"project_urls": {
"Download": "https://github.com/realsby/django-media-manager/archive/master.zip",
"Homepage": "https://github.com/realsby/django-media-manager"
},
"release_url": "https://pypi.org/project/django-media-manager-forked/4.1.1/",
"requires_dist": null,
"requires_python": null,
"summary": "Pillow/Python2.7/Media-Management with the Django Admin-Interface.",
"version": "4.1.1"
},
"last_serial": 2042632,
"releases": {
"3.4": [
{
"comment_text": "",
"digests": {
"md5": "42f6b8f8c9addfcb022ddf35d78f550f",
"sha256": "05fe611727aa353a33263e67107852c9ed528250abc6f75972128e9124646d80"
},
"downloads": -1,
"filename": "django-media-manager-forked.tar.gz",
"has_sig": false,
"md5_digest": "42f6b8f8c9addfcb022ddf35d78f550f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 111310,
"upload_time": "2016-04-02T22:38:30",
"url": "https://files.pythonhosted.org/packages/9d/46/e41284a2344e91b982835eb802a22c49e24495f7cb4a1e0f9946fdac1a06/django-media-manager-forked.tar.gz"
}
],
"4.1.1": [
{
"comment_text": "",
"digests": {
"md5": "6c7091a06285dc7adaf0eec60715aab3",
"sha256": "c1e6cc8dabe1d39acbe12b6ac3dbff7787481bb2884c41407c4ca9e581d3a9e9"
},
"downloads": -1,
"filename": "django-media-manager-forked_4.1.1.tar.gz",
"has_sig": false,
"md5_digest": "6c7091a06285dc7adaf0eec60715aab3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 106419,
"upload_time": "2016-04-03T01:38:42",
"url": "https://files.pythonhosted.org/packages/a5/78/acec40ca00bdc12d52e791cba5ffe50785dca6b4121c95ecc55006db2216/django-media-manager-forked_4.1.1.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "6c7091a06285dc7adaf0eec60715aab3",
"sha256": "c1e6cc8dabe1d39acbe12b6ac3dbff7787481bb2884c41407c4ca9e581d3a9e9"
},
"downloads": -1,
"filename": "django-media-manager-forked_4.1.1.tar.gz",
"has_sig": false,
"md5_digest": "6c7091a06285dc7adaf0eec60715aab3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 106419,
"upload_time": "2016-04-03T01:38:42",
"url": "https://files.pythonhosted.org/packages/a5/78/acec40ca00bdc12d52e791cba5ffe50785dca6b4121c95ecc55006db2216/django-media-manager-forked_4.1.1.tar.gz"
}
]
}