Re: How to find details if HTTP 500 - Internal server error

2005-10-01 Thread PythonistL
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 -

Re: boring __repr__ - any help?

2005-10-01 Thread Andreas
Hey Alice, > Is there a way to return an > attribute of a related class? Yes. Try: def __repr__(self): return self.get_choice() Andreas

boring __repr__ - any help?

2005-10-01 Thread Alice
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

Re: boring __repr__ - any help?

2005-10-01 Thread Alice
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.

composite keys - possible? desirable?

2005-10-01 Thread Alice
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

Re: composite keys - possible? desirable?

2005-10-01 Thread Joshua D. Drake
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

Re: composite keys - possible? desirable?

2005-10-01 Thread Maniac
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

Re: serving PDF

2005-10-01 Thread Felix Ingram
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

Keeping getting errors, running through the tutorials, django-admin ... sql newpolls

2005-10-01 Thread ramzabean
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

Re: Django hosting, anyone?

2005-10-01 Thread ramzabean
Try textdrive.com

Re: Django hosting, anyone?

2005-10-01 Thread Jeremy Dunck
On 10/1/05, ramzabean <[EMAIL PROTECTED]> wrote: > > Try textdrive.com > > Wow, ramzabean, did you even read his message?

Re: Django hosting, anyone?

2005-10-01 Thread Carlo C8E Miron
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

Re: Django hosting, anyone?

2005-10-01 Thread ramzabean
I didnt actually. Yea, I see your point.

Re: Keeping getting errors, running through the tutorials, django-admin ... sql newpolls

2005-10-01 Thread ramzabean
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?