Re: Unicode problem when rendering a template

2007-09-05 Thread wolfds
Can we see the model definition for Reward? --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, se

Re: Unicode Type Error when adding M2M field

2007-09-05 Thread wolfds
wolfds schrieb: > Your class Alert should have defined a method __unicode__() to return > a Unicode represantation. If so, you can use > > def __unicode__(self): > return smart_unicode(self.advert) > > in the class Rank_alert. sorry for typos - again: Your class Adver

Re: Hierarchical menus

2007-09-05 Thread wolfds
Itereate over the categories. For each category fetch the range set which belongs to it. see http://www.djangoproject.com/documentation/db-api/#backward --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: Unicode Type Error when adding M2M field

2007-09-05 Thread wolfds
Your class Alert should have defined a method __unicode__() to return a Unicode represantation. If so, you can use def __unicode__(self): return smart_unicode(self.advert) in the class Rank_alert. --~--~-~--~~~---~--~~ You received this message because you a

Re: get_FOO_url() returns empty string

2007-07-13 Thread wolfds
Collin Grady schrieb: > You're missing the trailing slash on MEDIA_URL though, so get_img_url > won't get the proper path. Collin, that was my second fault, which came up after correcting my program as Jonathan described. Thank you, Wolf --~--~-~--~~~---~--~~

Re: get_FOO_url() returns empty string

2007-07-13 Thread wolfds
Jonathan Buchanan schrieb: > wolfds wrote: > > I ran into a problem which I tried to solve for several hours now. The > > situation is simple and straightforward: > > > > models.py: > > > > class Foo(models.Model) > > img = model.Im

get_FOO_url() returns empty string

2007-07-12 Thread wolfds
I ran into a problem which I tried to solve for several hours now. The situation is simple and straightforward: models.py: class Foo(models.Model) img = model.ImageField(upload_to='pix') settings.py: MEDIA_ROOT = '/home/wolf/appl/media/' MEDIA_URL = 'http://my.host.de/media' foo.html: