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
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
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 =
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 =
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
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)?
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,
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
>
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 =
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
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
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
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
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
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
101 - 115 of 115 matches
Mail list logo