Admin Site Fails to Load with Attribute Error

2007-01-06 Thread Ben Lamb
I'm running rev 4293 of Django, under Python 2.3.5 on both OpenBSD 3.7 and Linux 2.6.15 (Kubuntu). I have the same project deployed on both servers. When I try to access the admin site on the OpenBSD machine I get the error: AttributeError at /admin/ 'module' object has no attribute

Re: cursor.fetchall() attribute error

2006-11-11 Thread James Bennett
On 11/11/06, Rob Slotboom <[EMAIL PROTECTED]> wrote: >return [Poll.__class__(*row) for row in cursor.fetchall()] This is the problematic line; to instantiate a Poll, you'll want to either call its constructor -- Poll() -- or use the 'create()' method of its default manager (probably

cursor.fetchall() attribute error

2006-11-11 Thread Rob Slotboom
In a models.py I have created the folowing function. Top level, not in a class. def get_unvoted_polls_for_voter_ip(ip): from django.db import connection cursor = connection.cursor() sql = """SELECT polls_poll.* FROM polls_poll LEFT OUTER JOIN polls_vote ON polls_poll.id =

cursor.fetchall() attribute error

2006-11-11 Thread Rob Slotboom
In a models.py I have created the folowing function. Top level, not in a class. def get_unvoted_polls_for_voter_ip(ip): from django.db import connection cursor = connection.cursor() sql = """SELECT polls_poll.* FROM polls_poll LEFT OUTER JOIN polls_vote ON polls_poll.id =

Re: Filter "date" and FormFieldWrapper attribute error

2006-08-27 Thread Gary Wilson
Andres Luga wrote: > when displaying a form for a new object, I'm trying to set a default > value for a date field using a filter in a template, like so: > > > {{ form.somefield|date:"Y-m-d" }} > > This gives me an error: > 'FormFieldWrapper' object has no attribute 'year'. > What am I doing

Filter "date" and FormFieldWrapper attribute error

2006-08-26 Thread Andres Luga
Hi, when displaying a form for a new object, I'm trying to set a default value for a date field using a filter in a template, like so: {{ form.somefield|date:"Y-m-d" }} This gives me an error: 'FormFieldWrapper' object has no attribute 'year'. What am I doing wrong (I'm using generic views)?

Re: 'ManyToManyField' attribute error

2006-06-07 Thread Mikeal Rogers
Thanks, that clears things up. I thought that if I sent it as a string rather than the class I could wait to define it until later. -Mikeal On Jun 7, 2006, at 8:30 PM, Malcolm Tredinnick wrote: > > Hi Mikael, > > On Wed, 2006-06-07 at 19:41 -0700, Mikeal Rogers wrote: >> Sure, Here you go,

Re: 'ManyToManyField' attribute error

2006-06-07 Thread Malcolm Tredinnick
Hi Mikael, On Wed, 2006-06-07 at 19:41 -0700, Mikeal Rogers wrote: > Sure, Here you go, > > class BItem(models.Model): > > #Date stuff > created_on = models.DateTimeField(auto_now_add=True) > last_edited_on = models.DateTimeField(auto_now=True) > #Last Edited By >

Re: 'ManyToManyField' attribute error

2006-06-07 Thread Mikeal Rogers
Sure, Here you go, class BItem(models.Model): #Date stuff created_on = models.DateTimeField(auto_now_add=True) last_edited_on = models.DateTimeField(auto_now=True) #Last Edited By last_edited_by = models.ForeignKey(User) #B information name =

Re: 'ManyToManyField' attribute error

2006-06-07 Thread Malcolm Tredinnick
Hi Mikeal, On Wed, 2006-06-07 at 19:17 -0700, Mikeal Rogers wrote: > Hiya, > > I'm using the django trunk and tried to generate the SQL for a model > I just wrote and got the following traceback; > > execute_manager(settings) >File

'ManyToManyField' attribute error

2006-06-07 Thread Mikeal Rogers
Hiya, I'm using the django trunk and tried to generate the SQL for a model I just wrote and got the following traceback; execute_manager(settings) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/django/core/management.py", line 1255, in

Re: Weird??!! Attribute Error on Page but not in Shell

2006-03-05 Thread oggie rob
Why don't you post some code? Nothing is obvious from what you've said -rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com

Re: Django Attribute Error on Page Load

2006-02-23 Thread [EMAIL PROTECTED]
Yeah, I am restarting on every change; but I am still having this problem. -Jeremy Kenneth Gonsalves wrote: > On Thursday 23 Feb 2006 10:15 am, [EMAIL PROTECTED] wrote: > > I'm new to django and it looks really cool.  I've installed > > mod_python and am trying to get the tutorial to work.  It

Re: Django Attribute Error on Page Load

2006-02-23 Thread Kenneth Gonsalves
On Thursday 23 Feb 2006 10:15 am, [EMAIL PROTECTED] wrote: > I'm new to django and it looks really cool.  I've installed > mod_python and am trying to get the tutorial to work.  It seems > to work for the most part but whenever I am trying to load a page > I get the following error message, after

Re: Tutorial -- no attribute error

2006-01-29 Thread Adrian Holovaty
On 1/29/06, kbochert <[EMAIL PROTECTED]> wrote: > > Yeah -- just found it. Sticky key prevented saving of the polls.py > file > Why do these things always happen when I'm learning something new?? > > On to the next stupidity. No problem at all -- we should improve that error message. Adrian

<    1   2