Re: mymodel.save() does not work django view but works in python shell

2009-05-11 Thread NoviceSortOf
> Michael I appreciate your answer... I omited in my code example was the assert False that was being used to debug the problem, so intuitively you were right something was wrong with the code With the assert False though it was bringing up the debugger and I could view the variables. Without t

Re: mymodel.save() does not work django view but works in python shell

2009-05-11 Thread Michael
On Mon, May 11, 2009 at 11:05 AM, NoviceSortOf wrote: > > from views.py > > def testit(): >from myproject.models import NewCust >p1 = NewCust() ## Create blank instance >p1.zipcode = '222' ## Load something into it. >p1.last_name = 'Smith' >p1.save()

mymodel.save() does not work django view but works in python shell

2009-05-11 Thread NoviceSortOf
.save() is not working for me either with models or with forms in django. I'll start with a simple example, on a single non related table. from views.py def testit(): from myproject.models import NewCust p1 = NewCust() ## Create blank instance p1.zipcode = '222' ##