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.1.2.tar.gz
(102.3 kB
view hashes)
Built Distribution
Close
Hashes for django-fineuploader-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f54fc318462f360a9cc7bf521aecf36e5fa86eceeba11582ebe84d0ff48492db |
|
MD5 | 1bed00c67a24a2ad821202b5742be67e |
|
BLAKE2b-256 | 11f6e4c46d25fc4ab4a10f41a95afe4062e13b173ab24922796a6c8d90e5c718 |
Close
Hashes for django_fineuploader-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e32acd4cfee63c1518f6caf592b8db4a9ad15dc4a1978434bc4bdd42b4aadae |
|
MD5 | 26da5be4aa7af7549801d868e9d84bbc |
|
BLAKE2b-256 | 27f20cd8fdeb583a09bf9b7b6de0fbcdbcff9dfee5bf1bc4a7646498bcb6a113 |