I went through the steps above. And when I got to the point of 'sql
polls' for example, it bombed. And I am using newpolls and that
directory exists, etc.
Any ideas?
I didnt actually. Yea, I see your point.
2005/9/30, Jacob Kaplan-Moss <[EMAIL PROTECTED]>:
>
> Hello fellow Djangonauts --
Hey Jacob, "djangonauts™" is copyrighted by *me* ;)
digging on irc logs reveals that my first usage of "ciao djangonauts™"
was on 2005-09-22 20:30:34 UTC::
(22:30:34) C8N: ciao djangonauts
Please keep in mind that
On 10/1/05, ramzabean <[EMAIL PROTECTED]> wrote:
>
> Try textdrive.com
>
>
Wow, ramzabean, did you even read his message?
Try textdrive.com
I am running this tutorial:
http://www.djangoproject.com/documentation/tutorial1/
but, I get this error, the command is at the top of the page
python django-admin.py sql newpolls
django error:
http://www.djangoproject.com/documentation/tutorial1/
BEGIN;
Traceback (most recent call last):
Fi
I'd like to provide users with an option to generate latex source (or
the pdf generated by the source). Can django's templates be used
for generating the source? Would I have to change the mime type
to ensure it gets served as plain text?
Has anyone had any experience with calling external scrip
Alice wrote:
unique_together = (("driver", "restaurant"),)
... and I don't think this is a db-level solution ..
At least in Postgres it is db-level. It produces something like this in
table definition:
CONSTRAINT polls_answers_driver_key UNIQUE (driver,restaurant)
Don't know abo
Alice wrote:
class Answer(meta.Model):
user = meta.ForeignKey(User)
question = meta.ForeignKey(Question)
choice = meta.ForeignKey(Choice)
I just did a double take on my model and realized a composite key would
be more ideal here as I wouldnt want a user answering the same
class Answer(meta.Model):
user = meta.ForeignKey(User)
question = meta.ForeignKey(Question)
choice = meta.ForeignKey(Choice)
I just did a double take on my model and realized a composite key would
be more ideal here as I wouldnt want a user answering the same question
twic
def __repr__(self):
return self.get_choice()
that gives me a bunch of these errors
TypeError: __str__ returned non-string (type Choice)
even though the __repr__ of choice returns a string (CharField).
however:
def __repr__(self):
return self.get_choice().choice
works a treat.
hello,
Is there a way to return an attribute of a related class?
ie: return self.choice.someattr
class Answer(meta.Model):
user = meta.ForeignKey(User)
question = meta.ForeignKey(Question)
choice = meta.ForeignKey(Choice)
def __repr__(self):
retu
Hey Alice,
> Is there a way to return an
> attribute of a related class?
Yes. Try:
def __repr__(self):
return self.get_choice()
Andreas
Hello Adrian,
Thank you for your reply. I checked my Apache error log but I could not
see the traceback that could help. It ended up with
[notice] mod_python: (Re)importing module
'django.core.handlers.modpython'
For this particular error of yesterday I found out that the reason, for
HTTP 500 -
14 matches
Mail list logo