Re: File field problem

2008-11-20 Thread laspal
Got it fixed. I was making mistake -) On Nov 20, 12:22 pm, laspal <[EMAIL PROTECTED]> wrote: > OK I got the point but still having some problem dealing with excel > file. > > code: > abspath = '/home/laspal/work/test/tmp/' > * view*** > if not os.path.isdir(abspath + str(_user

Re: File field problem

2008-11-19 Thread laspal
OK I got the point but still having some problem dealing with excel file. code: abspath = '/home/laspal/work/test/tmp/' * view*** if not os.path.isdir(abspath + str(_user.username)): os.mkdir(abspath + str(_user.username) ) filepathwithname = os.path.jo

Re: File field problem

2008-11-18 Thread Rajesh Dhawan
laspal wrote: > Hi, > I am trying to save file using file field but ran into problem. > Here is my code: > > ***model > > class CronEmail(models.Model): > subject = models.CharField( max_length = 200) > message = models.CharField( max_length = 200) > sender = mode