[Chicago] django users

Peter Harkins ph at malaprop.org
Wed May 14 20:10:50 CEST 2008


On Tue, May 13, 2008 at 07:43:06PM -0500, Massimo Di Pierro wrote:
> Sorry to intrude again. To the Django users: could you please check I am 
> not saying anything wrong about Django?

You have an example for inserting records:
p=Poll(question='What's up?',pub_date=datetime.datetime.now())
p.save()

This would more likely be written:
p = Poll.objects.create(question='What's up?',pub_date=datetime.datetime.now())

Otherwise all the Django stuff looks idiomatic to me. Thanks for writing
this, I've been curious about web2py and found it a nice introduction.


--
Peter Harkins  -  http://push.cx  -  http://NearbyGamers.com




More information about the Chicago mailing list