Re: None model error handling in view

2008-11-09 Thread VP
sv_error into my template I couldn't see this error in my browser. On Nov 9, 3:27 am, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Nov 9, 3:00 am, VP <[EMAIL PROTECTED]> wrote: > > > > > Hi all, > > > How to handle errors from different modules, for exam

None model error handling in view

2008-11-08 Thread VP
Hi all, How to handle errors from different modules, for example CSV or DATETIME in view? I am trying to parse CSV content in my view after an uplod a file by user. def my_view(request): ... try: for row in csv.reader(request.FILES['file']): for i in range(0, len(row)

DateField() value as 000-00-00

2008-11-07 Thread VP
Hi all, My question is: Is there any chance to put into a DB date field a value -00-00 using Django ORM? My users upload their data into a DB using Django application. If the data field is empty from their source file, Django generate an exception that format is not correct. I was trying to