[BangPypers] File upload to Server using FTP in Django?

2013-09-24 Thread sameerkatti
Hello, I am trying to incorporate FTP using 'pyftplib' in Django. I tried searching in the forum for help. When i attach a file and click send, i do not get any error but the page is redirected to "File Uploaded" template. I wish to know the procedure for the same. I have the code running in m

Re: [BangPypers] File upload to Server using FTP in Django?

2013-09-24 Thread sameerkatti
Hi, I said i want to know the entire procedure. Code is not the issue. I wanted to know whether i am following the right procedure. Regards Sameer -- View this message in context: http://python.6.x6.nabble.com/File-upload-to-Server-using-FTP-in-Django-tp5033494p5033502.html Sent from the Ba

Re: [BangPypers] File upload to Server using FTP in Django?

2013-09-24 Thread sameerkatti
I am using the Django Framework and i have written a small snippet in a function in views.py The same function is called in the urls.py . The code in the Views is /session = ftplib.FTP('abc.com','Username','Password') file = open('filename','rb') session.storbinary('STOR filename'

Re: [BangPypers] File upload to Server using FTP in Django?

2013-09-24 Thread sameerkatti
Chill, I took care of the problem myself. I have run this code and i was able to upload it to the server. May be u have learnt some different python. Regards -- View this message in context: http://python.6.x6.nabble.com/File-upload-to-Server-using-FTP-in-Django-tp5033494p5033555.html Sen

Re: [BangPypers] File upload to Server using FTP in Django?

2013-09-25 Thread sameerkatti
hello, My apologies to every one here, but i have already mentioned in my first post that i am new to Django and Python. I asked clearly that i need to transfer files using FTP and the procedure for the same. Not that i am struck in the middle of the something. I asked humbly which would be th