Hi evrybody,
Here is my model:
# fruits/models
Class Fruit (models.Model):
name = models.CharField(max_length = 33,
choices = NAME_CHOICES, default = MANGO)
# and so on...
# fruits/views
def fruit(request, fruit_name):
fruit = get_ob
Thanks you all Snejy and James.
Regards
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group,
Hi everybody,
I want to load a image with a variable name in detail.html like this:
{% load staticfiles %}
the image won't load. But when I try this way, it's work perfectly:
{% load staticfiles %}
Here is my question How to load a static file with a variable name? Ps:
pet.name value is
I tried in your way to concatenate, I don't get any exception, but the
image image does'nt want to display. The plage only throw the "alt" value.
Even for this line of code it's thing.
Le mardi 6 octobre 2015 19:51:04 UTC+2, Shawn Milochik a écrit :
>
> Try this:
>
> pet.name }} />
>
> You're
Thank you very much monsieur François
Le mardi 6 octobre 2015 20:40:01 UTC+2, François Schiettecatte a écrit :
>
> The '+' is an error, the line look more like this:
>
> />
>
> On Tue, Oct 6, 2015 at 2:33 PM, I. Dié >
> wrote:
>
>> I tried in your
5 matches
Mail list logo