Simple Fine Uploader integration for Django
Project description
This is a Django integration of Fine Uploader JavaScript Upload Library.
Installation
pip install django-fineuploader
External dependencies
jQuery - This is not included in the package since it is expected that in most scenarios this would already be available.
Setup
Add fineuploader and fineuploader.ajaxuploader to INSTALLED_APPS:
INSTALLED_APPS += (
'fineuploader',
'fineuploader.ajaxuploader',
)
Be sure you have the django.template.context_processors.request processor
TEMPLATES = [
{
...
'OPTIONS': {
'context_processors': [
...
'django.template.context_processors.request',
],
},
},
]
Update your urls.py file:
urlpatterns += [
url(r'^fineuploader/', include('fineuploader.urls')),
]
and include fineuploader templates
{% include "fineuploader/fineuploader_css.html" %} {# Before the closing head tag #}
{% include "fineuploader/fineuploader_js.html" %} {# Before the closing body tag #}
When deploying on production server, don’t forget to run:
python manage.py collectstatic
Usage
License
django-fineuploader is released under the BSD license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-fineuploader-0.2.0.tar.gz
(100.1 kB
view hashes)
Built Distribution
Close
Hashes for django-fineuploader-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ddfe50dabdd9531707b7748149b38576a4de07aad990064333ee028f46af3c0 |
|
MD5 | 83bff68c7ec96e4271123edb6b1c785a |
|
BLAKE2b-256 | 933c4c9a4eb7b747863d668c12bf3f30bc615e1e2807f5ef73c85aaa218dbf8c |
Close
Hashes for django_fineuploader-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c14efc0fef40aca730883ab59857b4d80d04e3da019977b2d6e01d9f207b09b |
|
MD5 | 18206b557a35dd9cebdff6c3ed88e090 |
|
BLAKE2b-256 | 1f76981a8c7cd60421332754022191262ce6e49d65e951ed0508051874f10bd8 |