Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tvrtkom/plupload-django

Using plupload with django to provide nice html5/flash/... uploads with progressbar
https://github.com/tvrtkom/plupload-django

Last synced: about 7 hours ago
JSON representation

Using plupload with django to provide nice html5/flash/... uploads with progressbar

Awesome Lists containing this project

README

        

Preparations
------------

install django-handlebars from here (allows to use EmberJS)
git://github.com/TvrtkoM/django-handlebars.git

add 'django_handlebars' to settings.INSTALLED_APPS
and of course this apps name (whatever u named it - eg. 'fileupload')

append this to settings.py:

HANDLEBARS_USE_EMBER = True
HANDLEBARS_TPL_DIR = path.join(path.dirname(path.abspath(__file__)), 'static', 'js', 'templates-src')
HANDLEBARS_TPL_CMPDIR = path.join(path.dirname(path.abspath(__file__)), 'static', 'js', 'templates')

install nspr:
sudo aptitude install libnspr4 libnspr4-dev (on Ubuntu)

install python-spidermonkey:
pip install python-spidermonkey

add something like this to project urls.py url patterns:
url(r'^fileupload/', include('fileupload.urls'))

run:
./manage.py collectstatic
./manage.py compilehandlebars
./manage.py runserver

go to:
http://127.0.0.1:8000/fileupload/

I think that's it.