Skip to content

TvrtkoM/plupload-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published