Re: TypeError with a Decimal Field

2010-05-05 Thread JonathanB
Yep, see I knew I was doing something simple wrong. The real irony is, returning just the grade was a placeholder till I came up with a better idea of exactly what I wanted there Thank you! On May 4, 9:40 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > On May 4, 1:15 pm, Jonatha

TypeError with a Decimal Field

2010-05-04 Thread JonathanB
I'm working on a Grade Book program for my personal use. Here is the relevant class from my models.py file: class Grade(models.Model): student = models.ForeignKey(Student) assignment = models.ForeignKey(Assignment) grade = models.DecimalField(max_digits=5,

Re: Ruby on Rails vs Django

2008-12-05 Thread JonathanB
On Dec 5, 7:06 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > did anybody try Ruby on Rails so can give us a feedback ? As someone who tried both, I have personally found that Django better fits my conceptual models than RoR. YMMV, because conceptions are a very personal thing. My friend

Re: admin TemplateSyntaxError using Django 1.1

2008-12-03 Thread JonathanB
Oh! Duh... I must have missed that part in the 5 or 10 time I read through the tutorial. Funny what you don't see when you're not looking for it. Thanks! On Dec 3, 11:25 am, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Dec 3, 4:12 pm, JonathanB <[EMAIL PROTECTED]> wrote:

admin TemplateSyntaxError using Django 1.1

2008-12-03 Thread JonathanB
I've been following the tutorial on the Django site, except that I'm inserting the app I'm developing in place of the tutorial app data. I received this error after logging into the admin site. TemplateSyntaxError at /admin/ Caught an exception while rendering: no such table: django_admin_log

ViewDoesNotExist: Even though it does

2008-10-22 Thread JonathanB
Getting a very erratic Exception: ViewDoesNotExist: Could not import supplier.views. Error was: cannot import name Buyer What is stage is Buyer (model Class) does exist and the exception is only thrown once in a while. Could it be that there are too many ForeignKey relationships. i.e. the Buyer