django-uploadify http error 500 after upload -


used technologies

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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -