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
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
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
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
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
--~--~-~--~~~---~--~~
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
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:
7 matches
Mail list logo