Re: Problem with simple file upload.

2010-12-25 Thread vivek_12315
Never mind I am able to see print statements in dev server shell output There is some problem with my upload.html as the 'form' variable returned by python script is not used at html end... This e.g. helped me much : http://www.zoia.org/blog/2007/07/29/django-file-upload/ On Dec 25,

Re: Problem with simple file upload.

2010-12-25 Thread vivek_12315
Never mind I am able to see print statements in dev server shell output There is some problem with my upload.html as the 'form' variable returned by python script is not used at html end... This e.g. helped me much : http://www.zoia.org/blog/2007/07/29/django-file-upload/ On Dec 25,

Re: Problem with simple file upload.

2010-12-25 Thread vivek_12315
If I use print statements in view python files, where can I see the output ? I am using django dev. server for initial testing of my website On Dec 22, 1:18 pm, yiftah wrote: > Nick is right, you need to change your view code to >

Re: Problem with simple file upload.

2010-12-25 Thread vivek_12315
If I use print statements in view python files, where can I see the output ? I am using django dev. server for initial testing of my website On Dec 22, 1:18 pm, yiftah wrote: > Nick is right, you need to change your view code to >

Re: Problem with simple file upload.

2010-12-22 Thread yiftah
Nick is right, you need to change your view code to handle_uploaded_file(request.FILES['uploaded']) instead of handle_uploaded_file(request.FILES['file']) I'm not sure a request object can process a file upload you may need to use RequestContext in your view definition On Dec 22, 7:50 pm, Nick

Re: Problem with simple file upload.

2010-12-22 Thread Nick Serra
I'm too lazy to check, but i'm pretty sure the name of your file input needs to match the name of the form field. Also, try troubleshooting. Use print statements in the view to see if the file object is being posted, etc. On Dec 21, 11:54 pm, vivek_12315 wrote: >

Re: Problem with simple file upload.

2010-12-21 Thread vivek_12315
Awaiting reply! On Dec 22, 3:36 am, vivek_12315 wrote: > I am a beginner in Django programming. I am writing a simple module > for file upload looking at link: > > http://docs.djangoproject.com/en/dev/topics/http/file-uploads/?from=o... > > I have made a view =

Problem with simple file upload.

2010-12-21 Thread vivek_12315
I am a beginner in Django programming. I am writing a simple module for file upload looking at link: http://docs.djangoproject.com/en/dev/topics/http/file-uploads/?from=olddocs I have made a view = upload.py and corresponding html = upload.html. Its content are as follows: