Re: Load a static file with a variable name

2015-10-07 Thread Simon Charette
You'll want to use Because François' suggestion will break if you use a static file storage that doesn't allow missing files reference such as the ManifestStaticFilesStorage . Simon Le mardi 6 octobr

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 way to concatenate, I don't get any exception,

Re: Load a static file with a variable name

2015-10-06 Thread François Schiettecatte
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 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. > > >

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

Re: Load a static file with a variable name

2015-10-06 Thread Shawn Milochik
Try this: You're embedding {{pet_name}} in a string. If this was a regular Python statement, it would be like writing "Hello, {0}" and not having a format() at the end. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this