django-uploadify http error 500 after upload -
used technologies
- django-uploadify (multiple file upload)
- django 1.3 testing web server
context
i can upload files web server using upload.html page (the upload directory has required permissions). however, when upload completed, web server returns http 500 error.
"post /filemanager/view http/1.1" 500 68788
the /filemanager/view page render correctly if access directly (get).
code
filemanager/urls.py
urlpatterns = patterns('filemanager.views', url(r'^upload/', direct_to_template, {'template': 'upload.html'}), url(r'^view/', listview.as_view( queryset = container.objects.all(), context_object_name='containers', template_name='view.html'), name='view' ) )
filemanager/templates/upload.html
{% load uploadify_tags %} {% load url future %} <html> <head> <script type="text/javascript" src="{{ media_url }}/js/uploadify/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="{{ media_url }}/js/uploadify/swfobject.js"></script> <script type="text/javascript" src="{{ media_url }}/js/uploadify/jquery.uploadify.js"></script> </head> <body> {% multi_file_upload '/filemanager/view' %} </body> </html>
filemanager/templates/view.html
<html> <h1>file list</h1> <ul> {% if containers %} {% container in containers %} <li>{{ container.file }}</li> {% endfor %} {% endif %} </ul> </html>
is possible django testing web server buggy while performing type of operation? suggestions?
Comments
Post a Comment