Re: Load a static file with a variable name

2015-10-07 Thread I . Dié
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

Re: Load a static file with a variable name

2015-10-06 Thread I . Dié
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

Load a static file with a variable name

2015-10-06 Thread I . Dié
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

Re: How to pass a string as url's parameter

2015-08-14 Thread I . Dié
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,

How to pass a string as url's parameter

2015-08-13 Thread I . Dié
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