Re: Performance for django for years

2007-09-10 Thread Xan
Thanks. Now, I will use PositiveSmallIntegerField I don't need a whole PositiveIntegerField (1900-->2100) and I want to compare years Thanks a lot, Xan. PS: Greg, yes there are lot of documentation, but it's more technical. Web site of django offers a good tutorial, good for "anybody". Rails off

Re: Performance for django for years

2007-09-09 Thread Greg Donald
On Sun, 9 Sep 2007, Xan wrote: > Well, first of all, thank you for django. I'm not programmer and I > just wanted to code some web app easier as I can do. I tried rails but > there is no free documentation (almost all doc are books and books) I wasn't charged anything before being allowed to acce

Re: Performance for django for years

2007-09-09 Thread Tim Chase
> Well, secondly I have one question: I have a model A that have a field > "year" that means the year that A was made. I just want to know if > it's best (for performance) to code as: > > class A(models.Model): > year = models.CharField(maxlength=4) > [...] > > or > class A(models.Model): >

Performance for django for years

2007-09-09 Thread Xan
Hi, Well, first of all, thank you for django. I'm not programmer and I just wanted to code some web app easier as I can do. I tried rails but there is no free documentation (almost all doc are books and books) and there is no have easy way for writing models. With django I found the easier way fo